Bonjour,
Bonjour,
voila mon probleme c est que j aimerai executer mes codes PHP en ligne de commande sous UBUNTU 8.10
mais sa ne marche pas j ai instale apapch mysql php5
sous firefox sa marche mais pas en ligne de commande aidez moi svp
j ai fais un sudo apt-get install php5-cli
mais rien quand j execute ce code par exemple
<?php
$var = 5;
echo "$var";
?>
./test.php
./test.php: line 1: ?php: No such file or directory
./test.php: line 3: =: command not found
./test.php: line 6: syntax error near unexpected token `newline'
./test.php: line 6: `?>'
Configuration: Linux
Firefox 3.0.6