Re: [PHP] Running Scripts from the Command Line in Linux

2006-06-10 Thread OOzy Pal
On 6/8/06, Venky <[EMAIL PROTECTED]> wrote: Even better... if you want to use GET/POST, and access PHP scripts thru the web server, it is recommended to use wget very useful tool, supports http auth, etc. Regards Venky On 08/06/06, Brad Bonkoski <[EMAIL PROTECTED]> wrote: > $ php scr

Re: [PHP] Running Scripts from the Command Line in Linux

2006-06-08 Thread Venky
Even better... if you want to use GET/POST, and access PHP scripts thru the web server, it is recommended to use wget very useful tool, supports http auth, etc. Regards Venky On 08/06/06, Brad Bonkoski <[EMAIL PROTECTED]> wrote: $ php script.php OOzy Pal wrote: > How can I run a .php

Re: [PHP] Running Scripts from the Command Line in Linux

2006-06-08 Thread Brad Bonkoski
$ php script.php OOzy Pal wrote: How can I run a .php script from the command in Linux? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running Scripts from the Command Line in Linux

2006-06-08 Thread Rabin Vincent
On 6/8/06, OOzy Pal <[EMAIL PROTECTED]> wrote: How can I run a .php script from the command in Linux? $ php yourscript.php Rabin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running Scripts from the Command Line in Linux

2006-06-08 Thread Dave Goodchild
On 08/06/06, OOzy Pal <[EMAIL PROTECTED]> wrote: How can I run a .php script from the command in Linux? 1. run /usr/local/bin/php (or wherever the php binary is, run which php to find out) scriptname 2. add the hash bang to the start of the script and run it by typing the scriptname. --

Re: [PHP] Running scripts in non-php file

2003-04-04 Thread Rasmus Lerdorf
That should be all you need. Make sure that something isn't re-assigning those extensions later on in your conf file. Perhaps you changed the wrong addtype? Liek a commented out one? -Rasmus On Fri, 4 Apr 2003, Tom Tsongas wrote: > Hi folks. > > This will probably sound like a stupid question

Re: [PHP] Running scripts from within PHP similar to SSI

2001-06-25 Thread Richard Lynch
If you are running PHP as a Module (you should be) try the http://php.net/virtual function. If not, you can use exec(), but pass any vars the thing needs: # Your CGI may be expecting command-line args or flags or... # I presumed it was URL-style input. exec("./cgi-bin/txtcounter.cgi?foo=$foo&bar

Re: [PHP] running scripts

2001-01-11 Thread Alex Black
probably a better idea to spawn a CGI version of your email sending script than to run it from the client... that means you'd have to bump max_executio_time way the hell up, which will affect the rest of your php apps on your server. _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turi