Hi

First get your PHP script working correctly...;-)

The use crontab to run lynx (as a browser that runs the PHP script for you).

Here's an example crontab line (works for me) that even gets lynx to 
handle an .htaccess protected_dir ;-):

5 5 * * *  /usr/local/bin/lynx -dump -nolog  -auth=userid:passwd 
httpd://mydomain.com/protected_dir//myphpscript.php   >  /dev/null


Hope that helps,
Tom Henry


Reductor wrote:
> do you mean perl?!?
> ----- Original Message -----
> 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)
> 
> 
> 
>>Hi.
>>
>>How can I execute a php script from the unix?
>>
>>like pearl it's (pearl "file"), but in unix we don't have a "executable"
>>
> of
> 
>>php, it's a module ,right?
>>
>>I should compile the script first?
>>
>>I want this to add to crontab to make backup of my mysql automaticly.
>>
>>thanks.
>>
>>Augusto
>>
>>
>>--
>>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]

Reply via email to