Forum Moderators: coopster
I want to open a series of urls that I get from a database.
So I inside the loop I do:
$handle = fopen($r->fields['url'], "r");
fclose($handle);
where $r->fields['url'] is a single url
And get:
Warning: fopen(http://www.domain.com ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
But if I do:
$url='http://www.domain.com';
$handle = fopen($url, "r");
fclose($handle);
I have no problems opening my location.
Any ideias?
Thks!
LOL...This happens to me all the time. Glad you got it, and thanks for sharing the solution ;)