Skip to content

PHP codes and news

Open Menu

Author: user

April 26, 2012

Lister les Bases de données, tables, champs, schémas etc

<html>
<head>
<title>Listing every database, table, and field</title>
</head>
<body>
<?php

  $hote
user
April 25, 2012

Exemple des fonctions mathématiques(hypoténus, puissance, etc)

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>
<?php
$a = bcmul(3.14, bcpow(10, 
user
April 21, 2012

Lire les données CSV dans un fichier

<?php
$fp = fopen('primes.csv','r') or die("Impossible d'ouvrir le fichier");
print "<table>
";
whi
user
April 20, 2012

Utilisation de fonction ‘ob_start()’ pour accumuler les sortie dans un ‘Buffer’ interne

<?php

$primes = array( array('Janvier',1250.000),
                 array('Fervier',1500.00),
     
user
April 19, 2012

Calcul de l’arc sinus avec la fonction ‘asin()’

		 <html>
		 <head>
		 <title> Fonction Math 'asin()'</title>
		 </head>
		 <body>
		 <table>
		 <t
user
April 18, 2012

Afficher les informations sur le client ‘MySQL’

<html>
<head>
<title>Base de données</title>
</head>
<body>

<?php
   mysql_connect("localhost","ro
user
April 18, 2012

Exemple d’utilisation de la fonction ‘rand()’

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>

<?php
print rand(0,576);

?>

 <
user
April 17, 2012

Calcul de cosinus avec la fonction prédéfinie

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>
<?php
    $cos1 = cos(10);
    ec
user
April 17, 2012

Syntaxe de création des copies d’un fichier


<?
   // Syntaxe de copie d''un fichier
    $mon_fichier = "users.txt";
    copy($mon_fichier, $mo
user
April 15, 2012

Exécute une chaîne comme un script PHP

<?php

$chaine= '$a= 10; $b=20; $c=$a+$b;print $c;';
print "Exécuter comme une chaîne simple: ".$cha
user

Posts navigation

Older posts
Newer posts

Recent Posts

  • Hello world!
  • PHP Session et Cookies: Exemple d’utilisation de session_start()
  • PHP: Fermer un fichier avec la fonction fclosde()
  • PHP: Vérifier si un élément est un répertoire
  • PHP: Vérifier si un fichier existe sinon le créer

Recent Comments

  1. A WordPress Commenter on Hello world!
© 2025 PHP codes and news
 / Theme: Really Simple / License: GPLv3