Re: strstr-pls help
| From: | Mekrand | Date: | Wed, 11 Dec 2002 18:44:55 +0000 |
| Subject: | Re: strstr-pls help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127870@lists.php.net to get a copy of this message | ||
i solved problem, -not a good solution-
i changed only
$adam=fread($ip,filesize($ip));
to
$adam=fread($ip,1024);
i dont understand what is wrong with filesize($ip) . i got this from php.net
and i thought it was valid.
link:
http://www.php.net/manual/en/function.fread.php
quote:
<?php
// get contents of a file into a string
$filename = "/usr/local/something.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
?>