PHP Cron: URL file-access is disabled

Status
Not open for further replies.

jr200200868

New Member
Messages
2
Reaction score
0
Points
0
Hi,

When I run my script manually, through web browser it is working pretty well, but when it runs through cron it returns:

<br />
<b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: URL file-access is disabled in the server configuration in <b>/home/jr200200/public_html/admin/autof.php</b> on line <b>18</b><br />
<br />
<b>Warning</b>: simplexml_load_file(http://hotfileserve.com/external.php?type=RSS2&amp;forumids=2) [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/jr200200/public_html/admin/autof.php</b> on line <b>18</b><br />
<br />
<b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;http://hotfileserve.com/external.php?type=RSS2&amp;forumids=2&quot; in <b>/home/jr200200/public_html/admin/autof.php</b> on line <b>18</b><br />
<br />

Is there something wrong with my cron command?

/usr/bin/php /home/jr200200/public_html/admin/autof.php >> /home/jr200200/public_html/cronOutput.txt 2>&1
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Hello,

Can I ask why you are trying to load the XML of a website that is listing illegal files.
 
Status
Not open for further replies.
Top