Re: fopen url
| From: | Jason Wong | Date: | Fri, 07 Nov 2003 01:35:14 +0000 |
| Subject: | Re: fopen url | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168793@lists.php.net to get a copy of this message | ||
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
*/