[Techtalk] A PHP script in a crontab.

henna hennar at gmail.com
Sat Jan 29 00:18:01 EST 2005


mm, I run my phpscripts from cli as

php scriptname.php

think this would be easier to put in the crontab, and you can debug it
more easily from cli.

Finne

On Fri, 28 Jan 2005 23:47:17 +1100, Sue Stones <suzo at spin.net.au> wrote:
> I have written a PHP script that I want to be executed automatically by
> using cron.  But the problem is that nothing happens when I run it that
> way.
>
> The script runs in a web browser, and works as I want it to, but when I
> put it in a cron tab, nothing happens.  I can think of 2 possible causes
> of error.  (1) I am calling it wrong, I have been told by the web hoster
> that the call statement should be something like this:
>
> "GET http://www.hostyorkshire.com/scgi-bin/script.php > /dev/null "
>
> I am not sure what the GET does!  This doesn't work.
>
> (2) the other possible cause is that the PHP code won't work if its not
> executed in a web browser.  Does anyone know if this is so, and what I
> have to do to make it work?
>
> thanks
>
> sue
>
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>


--
"Maybe you knew early on that your track went from point A to B, but
unlike you I wasn't given a map at birth!" Alyssa, "Chasing Amy"


-- 
"Maybe you knew early on that your track went from point A to B, but
unlike you I wasn't given a map at birth!" Alyssa, "Chasing Amy"


More information about the Techtalk mailing list