PHP/Cronjob: What is my Cronjobs problem?
- by Marius
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