RE: [PHP] running a stand-alone PHP program
do you have a ScriptAlias directive in the apache conf's? -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 5:16 PM To: Nathan Cook; [EMAIL PROTECTED] Subject: Re: [PHP] running a stand-alone PHP program Excellent. I got this working. From a command line the standalone PHP scripts work well, but if I hit them via http, it renders the path to PHP at the top of the page (but does execute the code). Any fix for that? Thanks, Rory -- 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]
Re: [PHP] running a stand-alone PHP program
you can also run like: php -q myfile.php -elias midget2000x [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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]
Re: [PHP] running a stand-alone PHP program
OK, thanks. This is great. But will this affect my existing installation of PHP? excuse the newbie questions! I appreciate your help. Thanks, Rory On Wed, 16 May 2001, Nathan Cook wrote: Assuming you are running linux... Just remove the --with-apache, from the ./configure statement... should look something like this # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql] # make # make install Should install to: # /usr/local/bin/php then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Have Fun! Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 2:52 PM Subject: RE: [PHP] running a stand-alone PHP program I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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] -- --- providing the finest in midget technology -- 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] -- --- providing the finest in midget technology -- 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]
Re: [PHP] running a stand-alone PHP program
Not if you are currently running it as an apache module. If you are running it as a cgi, then it might. But it sounds as if you are running it as an apache module. Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: Nathan Cook [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 10:38 AM Subject: Re: [PHP] running a stand-alone PHP program OK, thanks. This is great. But will this affect my existing installation of PHP? excuse the newbie questions! I appreciate your help. Thanks, Rory On Wed, 16 May 2001, Nathan Cook wrote: Assuming you are running linux... Just remove the --with-apache, from the ./configure statement... should look something like this # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql] # make # make install Should install to: # /usr/local/bin/php then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Have Fun! Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 2:52 PM Subject: RE: [PHP] running a stand-alone PHP program I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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] -- --- providing the finest in midget technology -- 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] -- --- providing the finest in midget technology -- 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]
Re: [PHP] running a stand-alone PHP program
Excellent. I got this working. From a command line the standalone PHP scripts work well, but if I hit them via http, it renders the path to PHP at the top of the page (but does execute the code). Any fix for that? Thanks, Rory On Thu, 17 May 2001, Nathan Cook wrote: Not if you are currently running it as an apache module. If you are running it as a cgi, then it might. But it sounds as if you are running it as an apache module. Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: Nathan Cook [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 10:38 AM Subject: Re: [PHP] running a stand-alone PHP program OK, thanks. This is great. But will this affect my existing installation of PHP? excuse the newbie questions! I appreciate your help. Thanks, Rory On Wed, 16 May 2001, Nathan Cook wrote: Assuming you are running linux... Just remove the --with-apache, from the ./configure statement... should look something like this # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql] # make # make install Should install to: # /usr/local/bin/php then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Have Fun! Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 2:52 PM Subject: RE: [PHP] running a stand-alone PHP program I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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] -- --- providing the finest in midget technology -- 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] -- --- providing the finest in midget technology -- --- providing the finest in midget technology -- 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]
Re: [PHP] running a stand-alone PHP program
Does your script happen to look like this? #!/usr/local/bin/php ?php If so then it is because of that magic line at the top the '#!/usr/local/bin/php'. If you remove that you won't see the path anymore, but then the script won't be self executing: # ./script.php You will have to run them manually: # php script.php Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: Nathan Cook [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 3:15 PM Subject: Re: [PHP] running a stand-alone PHP program Excellent. I got this working. From a command line the standalone PHP scripts work well, but if I hit them via http, it renders the path to PHP at the top of the page (but does execute the code). Any fix for that? Thanks, Rory On Thu, 17 May 2001, Nathan Cook wrote: Not if you are currently running it as an apache module. If you are running it as a cgi, then it might. But it sounds as if you are running it as an apache module. Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: Nathan Cook [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 10:38 AM Subject: Re: [PHP] running a stand-alone PHP program OK, thanks. This is great. But will this affect my existing installation of PHP? excuse the newbie questions! I appreciate your help. Thanks, Rory On Wed, 16 May 2001, Nathan Cook wrote: Assuming you are running linux... Just remove the --with-apache, from the ./configure statement... should look something like this # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql] # make # make install Should install to: # /usr/local/bin/php then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Have Fun! Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 2:52 PM Subject: RE: [PHP] running a stand-alone PHP program I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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] -- --- providing the finest in midget technology -- 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] -- --- providing the finest in midget technology -- --- providing the finest in midget technology -- 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] -- 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]
Re: [PHP] running a stand-alone PHP program
Yes, it has the path to PHP on the first line. So there's no way to hide it? It doesn't show up when it's a perl script and it's the path to perl. On Thu, 17 May 2001, Nathan Cook wrote: Does your script happen to look like this? #!/usr/local/bin/php ?php If so then it is because of that magic line at the top the '#!/usr/local/bin/php'. If you remove that you won't see the path anymore, but then the script won't be self executing: # ./script.php You will have to run them manually: # php script.php Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: Nathan Cook [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 3:15 PM Subject: Re: [PHP] running a stand-alone PHP program Excellent. I got this working. From a command line the standalone PHP scripts work well, but if I hit them via http, it renders the path to PHP at the top of the page (but does execute the code). Any fix for that? Thanks, Rory On Thu, 17 May 2001, Nathan Cook wrote: Not if you are currently running it as an apache module. If you are running it as a cgi, then it might. But it sounds as if you are running it as an apache module. Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: Nathan Cook [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 10:38 AM Subject: Re: [PHP] running a stand-alone PHP program OK, thanks. This is great. But will this affect my existing installation of PHP? excuse the newbie questions! I appreciate your help. Thanks, Rory On Wed, 16 May 2001, Nathan Cook wrote: Assuming you are running linux... Just remove the --with-apache, from the ./configure statement... should look something like this # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql] # make # make install Should install to: # /usr/local/bin/php then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Have Fun! Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 2:52 PM Subject: RE: [PHP] running a stand-alone PHP program I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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] -- --- providing the finest in midget technology -- 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] -- --- providing the finest in midget technology -- --- providing the finest in midget technology -- 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] -- 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] -- --- providing the finest in midget technology -- PHP General Mailing List (http
RE: [PHP] running a stand-alone PHP program
Why can't you specify the #!/usr/local/bin/php line in your systems path ?? ie something like this set PATH=$PATH;/usr/local/bin/php and then you should be able to go ./foo.php Peter Houchin Short Term Rental Manager [EMAIL PROTECTED] Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 = _ __ /\ /_/_/_\/ |_/ \ /_/_/___ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/v /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ __ __ __ /_/ __ __ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\/_//_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ = -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 12:13 PM To: Nathan Cook; [EMAIL PROTECTED] Subject: Re: [PHP] running a stand-alone PHP program Yes, it has the path to PHP on the first line. So there's no way to hide it? It doesn't show up when it's a perl script and it's the path to perl. On Thu, 17 May 2001, Nathan Cook wrote: Does your script happen to look like this? #!/usr/local/bin/php ?php If so then it is because of that magic line at the top the '#!/usr/local/bin/php'. If you remove that you won't see the path anymore, but then the script won't be self executing: # ./script.php You will have to run them manually: # php script.php Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: Nathan Cook [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 3:15 PM Subject: Re: [PHP] running a stand-alone PHP program Excellent. I got this working. From a command line the standalone PHP scripts work well, but if I hit them via http, it renders the path to PHP at the top of the page (but does execute the code). Any fix for that? Thanks, Rory On Thu, 17 May 2001, Nathan Cook wrote: Not if you are currently running it as an apache module. If you are running it as a cgi, then it might. But it sounds as if you are running it as an apache module. Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: Nathan Cook [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 10:38 AM Subject: Re: [PHP] running a stand-alone PHP program OK, thanks. This is great. But will this affect my existing installation of PHP? excuse the newbie questions! I appreciate your help. Thanks, Rory On Wed, 16 May 2001, Nathan Cook wrote: Assuming you are running linux... Just remove the --with-apache, from the ./configure statement... should look something like this # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql] # make # make install Should install to: # /usr/local/bin/php then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Have Fun! Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 2:52 PM Subject: RE: [PHP] running a stand-alone PHP program I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- PHP General Mailing List (http://www.php.net
[PHP] running a stand-alone PHP program
I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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]
RE: [PHP] running a stand-alone PHP program
yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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]
RE: [PHP] running a stand-alone PHP program
I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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] -- --- providing the finest in midget technology -- 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]
Re: [PHP] running a stand-alone PHP program
Assuming you are running linux... Just remove the --with-apache, from the ./configure statement... should look something like this # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql] # make # make install Should install to: # /usr/local/bin/php then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Have Fun! Nathan Cook [EMAIL PROTECTED] - Original Message - From: midget2000x [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 2:52 PM Subject: RE: [PHP] running a stand-alone PHP program I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory --- providing the finest in midget technology -- 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] -- 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] -- --- providing the finest in midget technology -- 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] -- 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]
Re: [PHP] running a stand-alone PHP program
Nathan Cook wrote: then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Or you can put: #!/usr/local/bin/php as a first line in your script, then % chown u+x yourscript % ./yourscript HTH, Poncki -- 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]