PHP/Cronjob: What is my Cronjobs problem?
Posted
by Marius
on Stack Overflow
See other posts from Stack Overflow
or by Marius
Published on 2010-04-27T16:05:52Z
Indexed on
2010/04/27
16:23 UTC
Read the original article
Hit count: 423
Hello there,
I have no idea whats going on. But I have a script that looks like this. Cron job refuses to run it:
include_once 'class_lib/mime_mail/mimeDecode.php';
include_once 'class_lib/Mail/IMAPv2.php';
include_once 'inc-functions.php';
include_once "$_SERVER[DOCUMENT_ROOT]/class_lib/DbFuctioneer.php";
$dbFuctioneer = new DbFuctioneer();
Everything works well when I remove:
$dbFuctioneer = new DbFuctioneer();
Even when DbFuctioneer() looks like this:
<?php
class DbFuctioneer {
function dbCountMatches( $count) {
return $count;
}
}
Does Cron have a problem with Classes in his Jobs?
Thank you for your time.
Kind regards,
Marius
© Stack Overflow or respective owner