par
céka » 14 oct. 2005, 13:59
Bonjour,
J'ai executé Wamp5, pour installer PHP, mais si j'insère du code PHP dans un fichier html, il ne semble pas s'executer :
Mon code:
<html>
<head>
<title>Ma page 1</title>
</head>
<body>
Voici ma page 1, retour à la page d'accueil : <a href="princ.htm">ici</a>
<center> Bonjour nous sommes le :
<?
$date = date("d-m-Y");
echo "$date";
echo "xxx";
?>
</center>
</body>
</html>
Mon résultat:
Voici ma page 1, retour à la page d'accueil : ici
Bonjour nous sommes le :
Lorsque j'execute dans le ss-menu de wamp : phpMyAdmin, puis "Afficher les informations relatives à PHP", voici ce que j'obtiens:
PHP Version 5.0.4
System Windows NT P1- 5.1 build 2600
Build Date Mar 31 2005 02:44:34
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API Apache
Virtual Directory Support enabled
Configuration File (php.ini) Path e:\program files\wamp\apache\php.ini
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Quelqu'un pourrait-il m'aider ?
Bonjour,
J'ai executé Wamp5, pour installer PHP, mais si j'insère du code PHP dans un fichier html, il ne semble pas s'executer :
Mon code:
<html>
<head>
<title>Ma page 1</title>
</head>
<body>
Voici ma page 1, retour à la page d'accueil : <a href="princ.htm">ici</a>
<center> Bonjour nous sommes le :
<?
$date = date("d-m-Y");
echo "$date";
echo "xxx";
?>
</center>
</body>
</html>
Mon résultat:
Voici ma page 1, retour à la page d'accueil : ici
Bonjour nous sommes le :
Lorsque j'execute dans le ss-menu de wamp : phpMyAdmin, puis "Afficher les informations relatives à PHP", voici ce que j'obtiens:
PHP Version 5.0.4
System Windows NT P1- 5.1 build 2600
Build Date Mar 31 2005 02:44:34
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API Apache
Virtual Directory Support enabled
Configuration File (php.ini) Path e:\program files\wamp\apache\php.ini
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Quelqu'un pourrait-il m'aider ?