Re: fopen wierdness

From: Date: Fri, 06 Apr 2001 00:37:19 +0000
Subject: Re: fopen wierdness
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47360@lists.php.net to get a copy of this message
No, you receive the handle to the file. You cannot rename the handle. <? $filename = "http://www.latest.txt"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); echo $contents; fclose ($fd); ?> Should do the trick.. or something.. Modify it or whatever. - Richard "Jerry" <bonnej@Prairie.lakes.com> wrote in message news:Pine.LNX.4.21.0104051902400.15206-100000@Prairie.lakes.com... > > im trying to fopen a url with something like to following : > > fopen("something.com/something.txt", r); > > this returns a "0" > > now when i rename the doc to something.htm, ill get the contents? > > > Jerry Bonner > Systems Analyst / Web Development > --------------------------------- > email: [bonnej@prairie.lakes.com] > icq : [34572902] > phone: [507.344.1514] > fax : [507.385.6017] > --------------------------------- > Prairie Lakes Internet > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#47360) next »