Re: rebooting linux using php
| From: | Richard Lynch | Date: | Fri, 19 Jul 2002 04:33:57 +0000 |
| Subject: | Re: rebooting linux using php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108429@lists.php.net to get a copy of this message | ||
>On Friday 19 July 2002 04:26, Scott Fletcher wrote:
>> If you're going to use the cron file (or crontab) then php wouldn't work
>> because it is a programming languages for the web pages. For cron files or
[Perhaps there was even more text missing that made this all out of
context... Sorry.]
I missed other parts of this thread, but I have to say Bull$#!^ to the idea
that you need to use some language other than PHP for your cron jobs and/or
shell scripting.
I routinely use PHP for *all* my shell/cron scripts.
It saves me hours of time, what little hair I have left, and the aspirin I'd
have to down if I was using Perl or some shell script language.
Sure, if it's a one-line cron job to a shell command, I'll use the command
directly. If I have to think about it any more than that -- with a loop or
any db access or anything remotely complicated, it's PHP.
If you already know Perl or shell scripting, knock yourself out.
If you don't save yourself a lot of pain and suffering and just ./configure
PHP as a CGI (or CLI now) and use #!/usr/bin/php -q
--
Like Music? http://l-i-e.com/artists.htm