Jump to content

[SOLVED] How do I write include paths in cron scripts?


longtone

Recommended Posts

I'm a complete beginner to cron jobs

 

I'm getting an error with my include files using:

 

include_once($SERVER['DOCUMENT_ROOT'] ."/path/tofile.php");

 

Shouild I be using something like:

 

include_once("/usr/bin/php /home/<username>/public_html/path/tofile.php");

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.