Weird FURL Problem

Discussion in 'Site & Server Administration' started by blwire, May 12, 2009.

  1. #1
    Hey everyone, having a really hard time troubleshooting a allow_url_fopen bug. On my shared hosting account, it works fine. But i moved the script to my dedicated and its not working. Getting the following error below
    Warning: fopen(http://youtube.com/get_video.php?video_id=&fmt=17) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/xxxx/public_html/index.php on line 32 
    Code (markup):
    Whats weird is though, im in the middle of rebuilding apache and php through whm and i tried the site and it worked fine for a split second. Then i hit refresh and got the same freakin error :mad:

    I enabled allow_url_fopen in my php.ini etc. and it's still not working. Is there some kind of security thing or something in php i missed that will block this? My resolvers and everything else are setup fine also. Thanks for the help.
     
    blwire, May 12, 2009 IP
  2. cfortner

    cfortner Peon

    Messages:
    46
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Make sure you don't have the following in php.ini:

    allow_url_fopen = 'off'

    Also it can be disabled in httpd.conf the line would look similar to this :

    php_flag allow_url_fopen off
     
    cfortner, May 12, 2009 IP
  3. blwire

    blwire Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I did both and am still getting this damn error lol, any other ideas? I replicated all of the settings from my other server where it works and its giving me this error.
     
    blwire, May 13, 2009 IP