Re: fopen url

From: Date: Sat, 08 Nov 2003 00:21:52 +0000
Subject: Re: fopen url
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-168926@lists.php.net to get a copy of this message
Hello Jason, Thanks for your snot. The code you wrote below, > echo fopen("http://www.google.com", 'r'); > echo fopen("http://news.google.com", > 'r'); I've implmented at this url. http://www.globalscoop.com/gs/feeds/testUrl.php You can see the error I'm getting. Would you take a look? John "Jason Wong" <php-general@gremlins.biz> wrote in message news:200311070935.14551.php-general@gremlins.biz... > 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 > */

« previous php.general (#168926) next »