Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Re: how to run php in command line (fwd)


Message #1 by "S.Arun Srinivasan" <arun@o...> on Mon, 15 Jul 2002 12:52:14 +0530 (IST)
Don't use wget.

If you want to run PHP on the command line, do it.  Compiling php will
create an executable.  make install puts this in usr/local/bin, i think.

Anyway, you can either do this:

# php -q your_file.php

The -q suppresses header output

or make this the first line of your script:

#!/usr/local/bin/php

and just run it on the command line like any other shell script.


nik


  Return to Index