PHP file-get-contents not configured for cron jobs

Status
Not open for further replies.

ilovewhu86

New Member
Messages
22
Reaction score
0
Points
0
I have php code that works fine* (see 2nd question) when I execute through my browser but when executed as a cron job gives the error >Warning</b>: file_get_contents() [<a
href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access
is disabled in the server configuration in.....

How can I resolve this issue?

As a 2nd question... when I execute the same php code in my browser without my debug echo messages switched on the execution fails to complete but with the debug echo messages switched on it does complete. Is there some browser time restraint that will cause a php program on starka to stop if it does not output anything to the console log for a little while - e.g. 2 minutes?
 
Status
Not open for further replies.
Top