It might be a good idea to check the list archives.
http://marc.theaimsgroup.com/?l=php-general
But since I am feeling nice today (assuming you want to do it on *nix). Then
download and un-pack the source and run:
# ./configure [... additional options here like MySQL etc...(make sure you don't
put in the webserver)]
# make
# make install
Then it will create a php executable in the /usr/local/bin/ dir. Run that like
this:
# php -f filename.php
There is also another way to do it with magic lines I think something like this
at the top of your _executable_ file
#!/usr/local/bin/php
... Then just run your executable file like you would any other.
Nathan Cook
[EMAIL PROTECTED]
----- Original Message -----
From: "Jimmy Bäckström" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 10:21 AM
Subject: [PHP] php from the command line
Hi!
I was wondering how you could run php from the command line, and how it works!
Just out of curiosity =)
Thanks
/Broder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]