Closed Thread
Results 1 to 1 of 1

Thread: PHP file-get-contents disabled in Cron Jobs

  1. #1
    ilovewhu86 is offline x10Hosting Member ilovewhu86 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    20

    PHP file-get-contents disabled in Cron Jobs

    I have php code that works fine* (see 2nd question) when I execute it through my browser but when executed as a cron job it 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?

    Please note I originally asked this question in the forum PHP file-get-contents not configured for cron jobs but have not received a reply.


    Sorry this is a duplicate of PHP file-get-contents not configured for cron jobs please close one of them, I had no idea the support request would create another forum topic. - but ideally reply to one of them. I want to run my job as a Cron not manually.
    Last edited by ilovewhu86; 04-14-2011 at 07:59 PM.

Closed Thread

Similar Threads

  1. PHP file-get-contents not configured for cron jobs
    By ilovewhu86 in forum Free Hosting
    Replies: 0
    Last Post: 04-14-2011, 03:47 PM
  2. PHP Cron: URL file-access is disabled
    By jr200200868 in forum Free Hosting
    Replies: 1
    Last Post: 11-25-2010, 12:46 PM
  3. Cron Jobs Disabled?
    By GangLand_game in forum Free Hosting
    Replies: 2
    Last Post: 07-05-2008, 10:23 PM
  4. How do I open a file and overwrite contents?
    By nlester in forum Programming Help
    Replies: 5
    Last Post: 05-04-2008, 02:21 PM
  5. Cron Jobs
    By netengr in forum Free Hosting
    Replies: 0
    Last Post: 01-31-2008, 07:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers