Closed Thread
Results 1 to 3 of 3

Thread: Cron problem

  1. #1
    gabboc77 is offline x10Hosting Member gabboc77 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    1

    Cron problem

    Hello,
    I have a problem with a cron job. If I run my file manually, it works fine , but by cron job....no.
    In the error log I see "PHP Warning: file_get_contents(): URL file-access is disabled in the server configuration "
    Why? Is there a way to resolve?
    Thanks

  2. #2
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: Cron problem

    Why..

    Is because of other people abusing the command file_get_contents (and cURL) to scrape data from other web sites. Any outbound request on port 80 is blocked I believe.

    Solutions..
    Upgrade to premium hosting is the easy way to solve this.
    Search for another Free web hosting provider that allows the commands (best of luck)
    Run a home web server and POST data back to the X10 web server (you might as well run the entire site from home)


    There may be an alternative or workaround, what is it exactly that you are trying to do?
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  3. #3
    Anna's Avatar
    Anna is online now I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: Cron problem

    port 80 is currently not blocked, but a lot other ports would be (only the common ones are open).

    what's the command you use to get the cron executed, and what port would it connect to?
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

Closed Thread

Similar Threads

  1. cron problem
    By hsr_sr in forum Free Hosting
    Replies: 3
    Last Post: 09-22-2009, 08:48 PM
  2. cron job problem
    By pacerier in forum Programming Help
    Replies: 1
    Last Post: 09-18-2009, 11:20 AM
  3. Cron job problem still...
    By woodyl in forum Free Hosting
    Replies: 1
    Last Post: 04-16-2009, 02:31 AM
  4. Cron problem
    By evertuk in forum Programming Help
    Replies: 0
    Last Post: 10-16-2008, 05:55 AM
  5. [cron problem]php-cron command not found
    By N4rk0 in forum Free Hosting
    Replies: 1
    Last Post: 01-31-2008, 11:51 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