>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


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

Reply via email to