[PHP] Shell Programming with PHP, but where is the PHP?
Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Shell Programming with PHP, but where is the PHP?
Brandon Orther wrote: Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Try locate and/or whereis. And you should make sure PHP isn't installed as module. -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- 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] Shell Programming with PHP, but where is the PHP?
Hello, It is installed as a module, Is there a way I can keep it installed as a module but install it so I can use it to shell script also? Thanks Ahead Of Time Brandon -Original Message- From: Renze Munnik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? Brandon Orther wrote: Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Try locate and/or whereis. And you should make sure PHP isn't installed as module. -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- 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] Shell Programming with PHP, but where is the PHP?
Under linux you can use lynx to run php scripts under the shell. e.g. Assuming lynx is setup correctly lynx -source your.server.com/devel/newtrlkit/test.php?param=whatevertest.txt -Stewart -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: 03 April 2001 17:02 To: PHP User Group Subject: RE: [PHP] Shell Programming with PHP, but where is the PHP? Hello, It is installed as a module, Is there a way I can keep it installed as a module but install it so I can use it to shell script also? Thanks Ahead Of Time Brandon -Original Message- From: Renze Munnik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? Brandon Orther wrote: Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Try locate and/or whereis. And you should make sure PHP isn't installed as module. -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- 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] -- 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] Shell Programming with PHP, but where is the PHP?
Yes, download the source and compile it. Do not turn on the module options in ./configure. I was able to compile my own standalone cgi version of PHP on my ISP without issue. If you download it, unpack it Do ./configure Make And look in the bin directory of the source directory for your cgi version. Try it out, move it, whatever, then go back and recompile in other options you might want. If your ISP has development tools available, you should not have a problem. Since you are not installing it as a module, you won't need root access to compile it and make it work. On 4/3/01 9:02 AM, "Brandon Orther" [EMAIL PROTECTED] wrote: Hello, It is installed as a module, Is there a way I can keep it installed as a module but install it so I can use it to shell script also? Thanks Ahead Of Time Brandon -Original Message- From: Renze Munnik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? Brandon Orther wrote: Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Try locate and/or whereis. And you should make sure PHP isn't installed as module. -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- 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] Shell Programming with PHP, but where is the PHP?
:) yes, just ./configure (don't use --with-apache or --with-apxs) [other options] make cp php /usr/local/bin (or whatever) regards, Nuno Silva Brandon Orther wrote: Hello, It is installed as a module, Is there a way I can keep it installed as a module but install it so I can use it to shell script also? Thanks Ahead Of Time Brandon -Original Message- From: Renze Munnik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? Brandon Orther wrote: Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Try locate and/or whereis. And you should make sure PHP isn't installed as module. -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- 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] Shell Programming with PHP, but where is the PHP?
When I type: make it does nothing??? What am I supposed to be typing? -Original Message- From: Nuno Silva [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 9:19 AM To: Brandon Orther Cc: PHP User Group Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? :) yes, just ./configure (don't use --with-apache or --with-apxs) [other options] make cp php /usr/local/bin (or whatever) regards, Nuno Silva Brandon Orther wrote: Hello, It is installed as a module, Is there a way I can keep it installed as a module but install it so I can use it to shell script also? Thanks Ahead Of Time Brandon -Original Message- From: Renze Munnik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? Brandon Orther wrote: Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Try locate and/or whereis. And you should make sure PHP isn't installed as module. -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- 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] -- 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] Shell Programming with PHP, but where is the PHP?
What happens when you type ./configure? If the answer is nothing, or it ends with an error, then your ISP does not provide you with dev tools. And you are sort of out of luck. If you can find out for certain, what platform your isp is running, you may be able to install a binary. But a wouldn't count on it. Might have to find another ISP On 4/3/01 10:02 AM, "Brandon Orther" [EMAIL PROTECTED] wrote: When I type: make it does nothing??? What am I supposed to be typing? -Original Message- From: Nuno Silva [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 9:19 AM To: Brandon Orther Cc: PHP User Group Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? :) yes, just ./configure (don't use --with-apache or --with-apxs) [other options] make cp php /usr/local/bin (or whatever) regards, Nuno Silva Brandon Orther wrote: Hello, It is installed as a module, Is there a way I can keep it installed as a module but install it so I can use it to shell script also? Thanks Ahead Of Time Brandon -Original Message- From: Renze Munnik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? Brandon Orther wrote: Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Try locate and/or whereis. And you should make sure PHP isn't installed as module. -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- 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] -- 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] Shell Programming with PHP, but where is the PHP?
Hi, full instructions follow: download the latest php tarball from: http://www.php.net/do_download.php?download_file=php-4.0.4pl1.tar.gzsource_site=www.php.net then extract it: tar xzf php*tar.gz then cd to it: cd php* then configure it: ./configure the compile it: make then install it (as root do:) make install this should give you a command line php in: /usr/local/bin please note that ./configure may need some options for database access and stuff, just don't use --with-apache or --with-apxs good luck, Nuno Silva Brandon Orther wrote: When I type: make it does nothing??? What am I supposed to be typing? -Original Message- From: Nuno Silva [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 9:19 AM To: Brandon Orther Cc: PHP User Group Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? :) yes, just ./configure (don't use --with-apache or --with-apxs) [other options] make cp php /usr/local/bin (or whatever) regards, Nuno Silva Brandon Orther wrote: Hello, It is installed as a module, Is there a way I can keep it installed as a module but install it so I can use it to shell script also? Thanks Ahead Of Time Brandon -Original Message- From: Renze Munnik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Shell Programming with PHP, but where is the PHP? Brandon Orther wrote: Hello, I am looking for the path to my php so I can put it on the top of my php script. Like this: #!/path/to/php All I can find that looks like this is libphp4.so Does anyone know where to look for the binary? Thanks Brandon -- 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] Try locate and/or whereis. And you should make sure PHP isn't installed as module. -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- 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] -- 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]