On Friday 07 November 2003 04:12, John Hagstrand wrote:
> I'm trying to read a URL.
>
> this works: fopen( "http://www.google.com")
>
> this does not work: fopen( "http://news.google.com")
As it stands, neither of the above will work. fopen() requires at least 2
parameters. When you post code, please post the *exact* code that you use.
> If the URL does not start with "www", then fopen writes and error message
> that says "success" and returns false. What's up with that?
Did you jump to that conclusion based solely on the two example URLs above?
For the record:
echo fopen("http://www.google.com", 'r');
echo fopen("http://news.google.com", 'r');
works fine for me.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Humans are communications junkies. We just can't get enough.
-- Alan Kay
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php