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.

Anyone have experience of using RSS on dreamhost?

Discussion in 'XML & RSS' started by Deano, Apr 11, 2006.

  1. #1
    Hi I am trying to get an RSS feed going on dreamhost. The code I use works perfectly well on two other servers, but when I set it up on Dreamhost I get the following error.

    Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /home/.cattelina/???/???.eu/index.php on line 65

    Warning: fopen(http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml) [function.fopen]: failed to open stream: no suitable wrapper could be found in /home/.cattelina/???/???.eu/index.php on line 65
    Error reading RSS data.
    (my line 66 is a simple: or die("Error reading RSS data.");

    Any idea what the problem is or/and the best way to report this to dreamhost, I've found their support to generally be very deep and confusing in the past so I want to be sure I'm asking the right question.
     
    Deano, Apr 11, 2006 IP
  2. stephfoster

    stephfoster Well-Known Member

    Messages:
    567
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #2
    Dreamhost has some odd rules on which PHP commands you can use. Very annoying at times. I'm guessing from the "URL file-access is disabled in the server configuration" part that this is the issue you're dealing with. When I ran into it, I got an answer that it was something or other to do with security. Sorry, it's been several months now, so I don't recall exactly what they told me.

    Basically, they don't like to let you use PHP commands to show information from other sites. No good workarounds that I know of.
     
    stephfoster, Apr 11, 2006 IP
    Deano likes this.
  3. Deano

    Deano Sail away with me.

    Messages:
    890
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the reply.
    I'll shoot them an email and see if they are prepared to do anything about it. Using RSS nowadays is commonplace. I wouldn't even mind if there was a restriction on RSS Bandwidth, all I'm trying to do is keep page content fresh with a simple stream at the bottom.
     
    Deano, Apr 12, 2006 IP
  4. dakar

    dakar Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #4
    Dreamhost has fopen turned off gobally in the php build. However by using curl you can get around this. Got $10 that says any response from them will be pretty much exactly that :)

    Noppid was kind enough to write up a quick curl workaround the fopen to get the co-op ads script to work properly for my sites hosted there... I'm sure the same technique can be applied to fetching the desired RSS feed.
     
    dakar, Apr 20, 2006 IP
  5. Deano

    Deano Sail away with me.

    Messages:
    890
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yeah you're right that's the reply that I got.
    No RSS together with an awful control panel, but unlimited domain name.

    It's all swings and roundabouts!
     
    Deano, Apr 20, 2006 IP
  6. dakar

    dakar Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #6
    So do I get my $10? ;)

    Seriously, if you want to shoot me the fopen line of your code to fetch the feed, I think I can rewrite it with curl to pull it down for you.
     
    dakar, Apr 20, 2006 IP
  7. dreamer

    dreamer Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That info helped me. In my case fopen just failed with no meaningfull warning.
    So I asked my hosting company to enabled URL file-access.

    And they did. Now it's OK.
     
    dreamer, Jun 26, 2006 IP