Re: OT cron/perl/php..
| From: | J. Younker | Date: | Wed, 05 Jun 2002 15:19:02 +0000 |
| Subject: | Re: OT cron/perl/php.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100737@lists.php.net to get a copy of this message | ||
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.
HTH,
J.
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
> things...
>
> Kelly