cronjob

Turbo_boy

Verified User
Joined
Apr 19, 2006
Messages
7
Location
Netherlands
I searched google and this forum for it, but everything I found doesn't work.

I got the following cronjob:
5 * * * * /usr/local/bin/php /home/tust/domains/tust.nl/public_html/ircscript/index.php

I tryed also this one:
5 * * * * /usr/local/bin/php -c /home/tust/domains/tust.nl/public_html/ircscript/index.php

After the one with -c I received one mail from the cron daemon with a error in my php file (what isn't there when I execute it).

But if I put it again with -c it wouldn't execute nor send me a mail again.

What do I do frong?

The server owner doesn't get it too.
 
The -c should only be used to specify where the php.ini file is located.

Without some sort of failure being printed, I can only assume that index.php was executed and returned a 0 status and printed nothing. Try putting some debug code right after the <?php line in the script to insure that it is getting executed.
 
I tryed with a echo but it get not executed.
The administrator did it 1 time directly from ssh and that one worked.

I don't receive any mail about it or any thing.
 
now I get this error trought the mail:
PHP: Error parsing /home/tust/domains/tust.nl/public_html/ircscript/index.php on line 2

I only have this on the line: include('db.php');

nothing specially
 
Back
Top