2 September 2012 Afficher la palette de couleur RGB HTML <html> <head> <title> Palette de Couleur</title> </head> <body> <table> <tr> <?php $i = 1; php pacificateur
27 August 2012 Afficher la balise image formatée HTML <?php function imageHTML($fichier, $alt = '', $height = 0, $width = 0) { print '<img src="' . php pacificateur
12 May 2012 Enocoder et décoder les carractères non prisent en charge dans un URL; revoir orthographe HTML <?php // lien contenant de caractère à encodé //(accent, apostrophe, etc) $chaine = 'dé php pacificateur
21 November 2011 Les utilisations possible de ‘htmlentities( )’ HTML <?php $chaine = "<a href='#'><br/>Bienvenu sur mon site</a>"; print htmlspecialchars($chaine); prin php pacificateur
21 November 2011 Exemple d’utilisation de ‘html_entity_decode()’ HTML <?php $chaine = "Roméo & Juliette"; $s = htmlentities($chaine); $result = html_ent php pacificateur
21 November 2011 Rapporter un URL avec la classe ‘HTTP_Request’ HTML <?php // Fichier 'Request.php' indispensable require_once 'HTTP/Request.php'; $r = new HTTP_Request php pacificateur
21 November 2011 Utilisation ‘HTTP_USER_AGENT’ pour l’identification des navigateurs HTML <html> <head> <title>Utilisation des Variables</title> </head> <body> <div> <p> Navigateur: <b><?ph php pacificateur
21 November 2011 Exemple d’utilistion de ‘rawurlencode()’ HTML <? // lien contenant de caractère à encodé // (accent, apostrophe, etc) $chaine = 'démo php pacificateur
21 November 2011 Afficher la boîte de dialogue d’authentification HTML <?php header('WWW-Authenticate: Basic realm="Connexion Membre"'); header('HTTP/1.0 401 Unauthorized php pacificateur
21 November 2011 Traiter la boîte de dialogue d’authentification HTML <?php if ( (! isset ($PHP_AUTH_USER)) || (! isset ($PHP_AUTH_PW)) || ($PHP_AUTH_USER != 'sakoba' php pacificateur