Re: strstr-pls help
| From: | Mekrand | Date: | Wed, 11 Dec 2002 19:40:40 +0000 |
| Subject: | Re: strstr-pls help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127881@lists.php.net to get a copy of this message | ||
yes you are right, im very pensive today, :)
thanks chris and mako
"Chris Wesley" <cwwesley@udlug.org> wrote in message
news:Pine.LNX.4.44.0212111106330.16786-100000@leftcoast.thebackrow.net...
> 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
>