I am using a snippet of code from Sitepoint that opens up their RSS feed file and parse the XML into something readable. I have the file in the test folder of my local development machine and am calling the files using http://localhost/test/readsitepoint.php.
My problem is that the call to fopen returns the following error:
Here is the calling code...Stupid PHP Error wrote:Warning: fopen(http://www.sitepoint.com/rss.php): failed to open stream: Bad file descriptor in c:\program files\apache group\apache\htdocs\test\readsitepoint.php on line 59
Code: Select all
<?php
$fp = fopen("http://www.sitepoint.com/rss.php","r")
or die("Error reading RSS data.");
?>Code: Select all
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = OnAs always, any help would be appreciated.