Re: php from the command line

From: Date: Tue, 25 Sep 2001 16:30:32 +0000
Subject: Re: php from the command line
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68727@lists.php.net to get a copy of this message
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 ncook@pcsedu.com ----- Original Message ----- From: "Jimmy Bäckström" <broder_b@chello.se> To: <php-general@lists.php.net> 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

« previous php.general (#68727) next »