If it's a php script, you can place it in your cron-daily folder on your server, but 
to have it execute as a shell script, you would have to add:
#!/usr/bin/php -q
(or whatever the path to php is on your server) at the very top of your script.  The 
-q flag supresses the headers.
You would also have to change the permissions to have the file executable.

Kelly Meeks wrote:

> I've found a really handy php script (mysqlphpbak) that will backup all mysql 
>databases for me via mysqldump.
> I'm using a cobalt raq server, and according to them, I can create a script and put 
>it in a cron-daily directory, and that script will be executed.
> How do I create that script?  Does it have to be in perl, and if so, how would you 
>code it?  Or could it be a php file?
> Sorry for the exceedingly off-topic post, I'm obviously new to the sysadmin side of 
> Kelly

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to