can i run .php trom terminal
i want to know if its posibble to run a php script from terminal or i need to have my browser up:newbie:
|
Yes, that is possible. just run
Code:
#php <filename>.php Code:
#apt-cache search php command line interpreter output: php4-cli - command-line interpreter for the php4 scripting language php5-cli - command-line interpreter for the php5 scripting language and install the correct package for your system with Code:
#apt-get install php4-cli Then you can do the above. |
ityped the command in yum and it tells me no match for argument: php5-cli
am runing fedora 4 with php5. |
The regular "php" package comes with the command-line interpreter, so if you have PHP installed then you can run php on the command line.
|
Code:
# php -f php-file.php 1) Fire up a text editor and create your file, eg: PHP Code:
Code:
# chmod +x script.php Code:
# ./script.php |
the install command am trying to run wont run from command as the installer reports it cant find folders already in it's directory.Thank you for your help but it seems i will have to try and run it from browser as that is what comes with instructions on installing. by the way the app am trying to install is coppermine.
|
solved here's the thread to it thanks everyone for your contributions
http://www.linuxquestions.org/questi...d.php?t=436080 |
All times are GMT -5. The time now is 11:14 PM. |