I have a cron job that needs to include this file:
require \'../includes/common.php\';
however, when it is run via the cron job (and not my
nono. you need to use absolute paths on crons.
what I do is:
// supouse your cron is on app/cron and your lib is on app/lib $base = dirname(dirname(__FILE__)); // now $base contains "app" include_once $base . '/lib/db.inc'; // move on