Re: strstr-pls help

From: Date: Wed, 11 Dec 2002 19:09:36 +0000
Subject: Re: strstr-pls help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127873@lists.php.net to get a copy of this message
On Wed, 11 Dec 2002, Mekrand wrote: > i solved problem, -not a good solution- > i changed only > $adam=fread($ip,filesize($ip)); You have: $string = fread( $fileHandle, filesize( $fileHandle ) ); The example at php.net you looked at has: $string = fread( $fileHandle, filesize( $fileName ) ); Just change your call to filesize() to use the file name as the argument. No need to have a dirty solution, if you don't want to :) g.luck, ~Chris

« previous php.general (#127873) next »