Re: Execute a PHP script from unix (crontab)
| From: | Hugh Bothwell | Date: | Wed, 15 Aug 2001 16:00:00 +0000 |
| Subject: | Re: Execute a PHP script from unix (crontab) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62857@lists.php.net to get a copy of this message | ||
> 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...