> From: "Augusto Cesar Castoldi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to