Click to See Complete Forum and Search --> : fopen error


wolfbuda
03-02-2006, 10:55 AM
Hi,

Exist some restriction in apache server that restrict the use of fopen?

I have a php script that open many xml remote files, and in only one server it report error:
fopen($rss_url, 'r')

Can be relation with the firewall?

Thanks.

NogDog
03-02-2006, 11:50 AM
Is allow_url_fopen (http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen) enabled on that server?

wolfbuda
03-03-2006, 03:59 AM
Hi @NogDog's, yes it is....

bokeh
03-03-2006, 05:02 AM
Can you open the URL directly using a web browser?

wolfbuda
03-03-2006, 05:49 AM
hi @bokeh

yes I can and it's showed the xml.

To help understanding my problem I'm using Advanced RSS Ticker (http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/).

with the demo examples it work fine, but if I try to connect a rss news of my site the fopen of url broke.

bokeh
03-03-2006, 06:23 AM
Is this the only remote file you are opening or do others open ok. It maybe a redirect issue. fopen doesn't automatically follow redirects. Can you post the URL so it can be checked for a 302?

wolfbuda
03-03-2006, 06:32 AM
I already sent by private message.

302?????

bokeh
03-03-2006, 06:50 AM
Ok, that is sending a standard 200 response. Maybe its time we had a look at your code.

wolfbuda
03-03-2006, 07:03 AM
well, you can try Advanced RSS Ticker downloading in the previous link. At time, I don't change any line of code.