1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

failed to open stream: HTTP request failed! - help needed

Discussion in 'PHP' started by Staale, Apr 14, 2006.

  1. #1
    Hello, im setting up a new site, and it worked just fine at one of my webservers, but when i moved it to my account at Hostgator i get this error:

    Anyone?
     
    Staale, Apr 14, 2006 IP
  2. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #2
    maybe its host security issue ? sometime they dont allow some stuff .
     
    commandos, Apr 14, 2006 IP
  3. Staale

    Staale Peon

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thats mu guess aswell. I am talking to them with the ticket system, so hopefully its possible to solve this.

    Strange though.
     
    Staale, Apr 14, 2006 IP
  4. inerte

    inerte Peon

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Can you paste lines 1-5 from page.php? Probably there's a call to implode() but one of the arguments is not an array.
     
    inerte, Apr 14, 2006 IP
  5. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #5
    it's natural to give implode error if no results where found from the open stream ... he can remove the implode just by adding.. @implode

    but this will only hide the error ..
     
    commandos, Apr 14, 2006 IP
  6. Staale

    Staale Peon

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Have uploaded an unedited version of the script now, but still get an error.

    This error comes up only at my hostgator server. Working just fine at other servers.
     
    Staale, Apr 14, 2006 IP
  7. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Try putting this at the top of your code

    ini_set ('allow_url_fopen', '1');
     
    exam, Apr 14, 2006 IP
  8. Staale

    Staale Peon

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    No change :(
     
    Staale, Apr 14, 2006 IP
  9. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #9
    any response from your company ? because i still think @ 95% it's a company issue .
     
    commandos, Apr 14, 2006 IP
  10. Staale

    Staale Peon

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    They told me to ask the developer of the script. I have been reading some around, and it might have something to do with the php.ini file. But thats a file that i cant change, as far as i know.
     
    Staale, Apr 14, 2006 IP
  11. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #11
    definititely the error is not in your end but the company.

    I just signed up with netfirms and what they limit is the .htaccess, but if hostgator not, you can add those php.ini variables that allow implode, fetch, and such into the htaccess in order to override the server settings.
     
    Mystique, Apr 14, 2006 IP
  12. Staale

    Staale Peon

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Got any idea what to write? Sorry, but im not that familiar to this. :rolleyes:
     
    Staale, Apr 14, 2006 IP
  13. SecondV

    SecondV Active Member

    Messages:
    76
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    70
    #13
    allow_url_fopen is disabled. This cannot be set with .htaccess or ini_set.

    www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
     
    SecondV, Apr 14, 2006 IP
  14. Staale

    Staale Peon

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Ok. this is just strange. I Uploaded a file with phpinfo() and it says that allow_url_fopen is on. :confused:

    Got another answear from my host:
    Then i really dont understand why this script works perfect on my other server. I havent change a thing in the file.
     
    Staale, Apr 15, 2006 IP
  15. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #15
    is this related to pr issue ?

    because i tryed some scripts where page ranks were requested ... but it seem google is blocking a lot of servers for having access to the pr issue .
     
    commandos, Apr 15, 2006 IP
  16. Staale

    Staale Peon

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #16
    yes, its the PR script from googlecommunity. So, google most probably have blocked Hostgator`s servers then? :(

    Damn.
     
    Staale, Apr 15, 2006 IP
  17. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #17
    i think so , i had same prob few month ago , i was willing to write a wordpress plugin to allow user to show there pr but project was droped for this reason .

    http://www.chaaban.info/wordpress-plugin/
     
    commandos, Apr 15, 2006 IP
  18. SecondV

    SecondV Active Member

    Messages:
    76
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    70
    #18
    Oh, Ok =\ That sucks then, if I would have just seen the URL... :p
     
    SecondV, Apr 15, 2006 IP
  19. peyman_khafan

    peyman_khafan Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    can i unblock my server from google?
     
    peyman_khafan, Aug 17, 2006 IP
  20. Staale

    Staale Peon

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #20
    Most probably not, becuase the block is made by Google. Maybe it would work if you get a new IP?
     
    Staale, Aug 21, 2006 IP