Valid XHTML    Valid CSS2    

Listing du fichier repx.php

 

00001     <?php
00002     
# (gH) -_- repx.php ; TimeStamp (unix) : 16 Mars 2009 vers 10:35
00003     ####################################################################
00004     
$pouces = -1 ;
00005     
$cm
= -1 ;
00006     if (isset(
$_GET
["pouces"])) {
00007     
$pouces
= $_GET["pouces"] ;
00008     
$cm
= $pouces*2.54 ;
00009     } ;
# fin si
00010     ####################################################################
00011     
$xmldct
= new DOMDocument('1.0');
00012     
$conv
= $xmldct->createElement('conv');
00013     
$elt_pouces
= $xmldct->createElement('pouces');
00014     
$elt_pouces
->appendChild($xmldct->createTextNode($pouces));
00015     
$elt_cm
= $xmldct->createElement('cm');
00016     
$elt_cm
->appendChild($xmldct->createTextNode($cm));
00017     
$xmldct
->appendChild($conv) ;
00018     
$conv
->appendChild($elt_pouces) ;
00019     
$conv
->appendChild($elt_cm) ;
00020     echo
$xmldct
->saveXML() ;
00021     
####################################################################
00022     
?>

Pour ne pas voir les numéros de ligne, ajoutez &nl=non à la suite du nom du fichier.

 

 

retour gH    Retour à la page principale de   (gH)