joca
12-21-2004, 06:54 AM
Hi,
I am trying to make a php page that open a RSS (XML) file from, for example the BBC homepage. I want to show the news content on my page. In my code I use fopen(..url) to open the file, and it works if the file is located on my domainaccount. If the file is on another domain ie BBC I get an error.
I guess that the host has blocked fopen so I wonder if there are any other way of retrieving the contents of a file on an remote domain?
I have also tried file_get_contents..... without success....
Best regards
JoCa
I am trying to make a php page that open a RSS (XML) file from, for example the BBC homepage. I want to show the news content on my page. In my code I use fopen(..url) to open the file, and it works if the file is located on my domainaccount. If the file is on another domain ie BBC I get an error.
I guess that the host has blocked fopen so I wonder if there are any other way of retrieving the contents of a file on an remote domain?
I have also tried file_get_contents..... without success....
Best regards
JoCa