11 May 2012 Utiliser la fonction ‘exec( )’ pour lancer un programme externe Fonctions <?php // Lancer la calculatrice windows print exec("calc"); ?> php pacificateur
28 April 2012 Un premier script pour les débutants Fonctions <html> <head><title>Mon premier script</title></head> <body> <?php echo "Bienvenu sur PHP"; php pacificateur
15 April 2012 Exécute une chaîne comme un script PHP Fonctions <?php $chaine= '$a= 10; $b=20; $c=$a+$b;print $c;'; print "Exécuter comme une chaîne simple: ".$cha php pacificateur
25 November 2011 Variable globale: utilisation de ‘extract($Global)’ Fonctions <?php $a = 1; function test() { extract($GLOBALS); $a = 12; } test(); // affiche "1" au lieu php pacificateur
25 November 2011 Exemple de commentaire multiligne Fonctions <?php /* Calcul - A=12 - B=18 - C=a+b */ $a=5; $b=15; print pow($a+$b,2); ?> php pacificateur
25 November 2011 La portée d’une variable globale Fonctions <?php $pays= "US"; function test( ) { $GLOBALS['pays'] = "france"; } php pacificateur
25 November 2011 Le commentaire peut s’etendre sur plusieurs lignes Fonctions <? /* Ceci un commentaire Qui sera ignoré par Apache et le moteur de scripte PHP */ ?> php pacificateur
25 November 2011 Inclure une page avec le mot clé ‘include’ Fonctions <html> <head> <title> Inclusion d'une page</title> </head> <body> <?php include('pageUtil.php'); php pacificateur
25 November 2011 PHP: Exemple des differents styles des commentaires Fonctions <?php echo "Test de commentaire"; // Commentaire une ligne style java, c++ echo "Style She php pacificateur
25 November 2011 Inclure plusieurs fichier dans un scripte Fonctions <html> <head> <title>inclusion de Plusieurs Fichiers</title> </head> <body> <?php for ( $x = 1; $ php pacificateur