Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 28 Mar 2007, 03:33
jhei21 jhei21 is offline
Join Date: Mar 2007
Unhappy Problem setting RSS feeds to request though a proxy server

Hi all,

My host has recently changed the way they handle outbound HTTP requests and this has killed my RSS feeds. they told me that the fsockopen command will need to go through a proxy server.

I have been gettin the following error:

Warning: fsockopen(): unable to connect to in /includes/class_rss_poster.php on line 85

Warning: Unable to fetch RSS Feed in /includes/class_rss_poster.php on line 212

I changed the following lines in the /includes/class_rss_poster.php

line 85:
$fp = fsockopen($url['host'], $url['port'], $errno, $errstr, 5);

line 89:
$fp = @fsockopen($url['host'], $url['port'], $errno, $errstr, 5);


line 85:
$fp = fsockopen($url[''], $url['3128'], $errno, $errstr, 5);

line 89:
$fp = @fsockopen($url[''], $url['3128'], $errno, $errstr, 5);

but still get an error on line 212. Any ideas?

Any help would be great.
Reply With Quote
Old 28 Mar 2007, 13:45
MarkPW MarkPW is offline
Join Date: Apr 2006
Remove your new code and update $url['host'] and $url['port'] so that they correspond to your new settings.

You should have the following set before calling fsockopen:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The reason your new code is not working is because the variables $url[''] and $url['3128'] do not exist. What I think you were trying to achieve is: fsockopen('', '3128', $errno, $errstr, 5);
Reply With Quote
Old 30 Mar 2007, 04:30
jhei21 jhei21 is offline
Join Date: Mar 2007
No luck i just get a

XML Error: mismatched tag at Line 5

which would be referring to this:

if (!isset($GLOBALS['vbulletin']->db))
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 04:05.

Layout Options | Width: Wide Color: