Re: fopen & fread??

From: Date: Thu, 22 Jun 2000 21:57:45 +0000
Subject: Re: fopen & fread??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2712@lists.php.net to get a copy of this message
At 05:52 PM 6/22/00 -0400, Jim Brown, Sr. wrote:
Hello, Can someone explain why this doesn't seem to work? /**** SNIPPIT *****/ $file = 'http://www.CSUinternet.net/shopping_mall.html'; $open = fopen($file, 'r'); $directory = fread($open, filesize($file)); fclose($open); echo "$directory"; /****** END ******/ From what I can gather I typed it in correctly. Any ideas??
Hi James, The filesize function can only be used on local files. Try substituting that call with a large number instead. HTH, Zak Greant Creative Director Nucleus Information Service Inc.

« previous php.general (#2712) next »