I've installed xampp, it works (http://localhost/ ok). Now I try to execute a script with php command line but it doesn't work.
I see the following message :
- Code: Select all
bash: php: command not found
In fact I understand that php isn't in environment variable
I test execution with the following terms : php-5.2.5 toto.php in the following path : /opt/lampp/bin/
But it's same.
Here is my basic script toto.php :
- Code: Select all
<?php
echo "toto";
?>
So, my question is : How should I do for the command line interface works with php ?
Thank you in advance.