All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

access denied php cron job

Viewing post 1 to 2 (2 total posts)
Profile picture of harring4

harring4 said 11 months, 3 weeks ago:

I am using a cron job to update the contents of an XML file daily. The cron job will call a php script, the php script reads figures out the day of the week and then copies an XML file to the correct URL. However, I receive this error:

<b>Warning</b>: file_get_contents(http://example.com/thurs.xml) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
in <b>/home/content/77/8761477/html/refreshXML.php</b> on line <b>7</b>

I tried changing the permissions, but that doesn’t seem to work. Any other thoughts?

Profile picture of StaceyH

GoDaddy Expert staceyh said 11 months, 3 weeks ago:

@harring4 I’d recommend contacting our live support team so that we can test your cron job to see where the error is coming from:

https://support.godaddy.com/support/

~Stacey

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.