Guys im using this line $fp = fopen ($file, "r") or die ("Could not open $file for input"); and im getting this error Warning: fopen(http://www.nytimes.com/services/xml/rss/nyt/Books.xml) [function.fopen]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\Users\Ian\Documents\College\BSHSS\BSHSS4\server2go\htdocs\projectBookstore\rssParserTester.php on line 149 Could not open http://www.nytimes.com/services/xml/rss/nyt/Books.xml for input ANY IDEA'S
Have you tried calling fopen() on other URLs? Is it a problem with all of them or with this one in particular?
Check internet connection. try from command line on server telnet www.nytimes.com 80 Code (markup): it's possible outbound conections are blocked.
it is workin fine here <?php $file='http://www.nytimes.com/services/xml/rss/nyt/Books.xml'; $fp = fopen ($file, "r") ?>