Re: Execute a PHP script from unix (crontab)
| From: | Kunal Jhunjhunwala | Date: | Wed, 15 Aug 2001 16:04:42 +0000 |
| Subject: | Re: Execute a PHP script from unix (crontab) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62861@lists.php.net to get a copy of this message | ||
Hi,
There are basically two ways of doing this.
Use lynx : lynx --dump http_address_to_file
or
Compile php as a cgi binary.
You should select them based on your need.
Kunal
----- Original Message -----
From: "Hugh Bothwell" <hugh_bothwell@hotmail.com>
To: <php-general@lists.php.net>
Sent: Wednesday, August 15, 2001 9:30 PM
Subject: Re: [PHP] Execute a PHP script from unix (crontab)
> > From: "Augusto Cesar Castoldi" <Augusto.Castoldi@uol.com.br>
> > To: <php-general@lists.php.net>
> > Sent: Thursday, August 16, 2001 1:04 AM
> > Subject: [PHP] Execute a PHP script from unix (crontab)
> > > How can I execute a php script from the unix?
> > > like perl it's (perl "file"), but in unix we don't have
> > > a "executable" of php, it's a module ,right?
>
> Same idea as Perl, start with a shebang line to tell
> it where to find the interpreter:
>
> #!/usr/local/bin/php
> <?php
> // your script here...
> ?>
>
> > > I should compile the script first?
>
> Nope, no need...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>