Page is a not externally linkable
- Hardware and OS Related Technologies
-- Linux, Unix, and *nix like Operating Systems
---- Weird cron job issue - works for one user, but not another


mcavic - 5:50 pm on Jan 29, 2009 (gmt 0)


$_SERVER would be a problem for cron. It's possible that the tech has the $_SERVER variables set in her profile for debugging purposes. In that case, it should work for any address when she runs it, but for you it would only work from the URL.

If that's the problem, you may be able to remove it from the script and hard-code the necessary data. Or, you may be able to use curl or wget to call the URL from cron, which would act the same as calling it from your Web browser.


Thread source:: http://www.webmasterworld.com/linux/3837432.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com