"Rob Ristroph" <rg*@sdf.lonestar.org> wrote in message
news:87************@rgristroph-austin.ath.cx...
I'm helping someone who is running a server with Debian testing, which
only has PHP 4.2.3, not higher. He wants to run php from the command
line, which I think is only supported starting with 4.3. Is there a
way to do it with 4.2.3 ? I am trying to avoid installing a newer
version of php from source, as the machine has a running webserver on
it that I would not like to break for more than a few minutes.
--Rob
just type :
php filename.php
or make it into a shell script add the first line to the script
#!/bin/php -q
then chmod 755 the file
the to run it ./filename.php
or stick a copy in
/usr/bin
btw, if you are making a shell script, it does not
need the .php extention. it doesnt need one at all
I have a shell script that I wrote in php called srestart
it restarts services properly on my boxes.
ie:
srestart httpd
srestart mail
srestart dns
--
Mike Bradley
http://www.gzentools.com -- free online php tools