fread bug? + how to read in a http:// file
| From: | virus | Date: | Wed, 05 Jul 2000 14:17:34 +0000 |
| Subject: | fread bug? + how to read in a http:// file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4943@lists.php.net to get a copy of this message | ||
hi... i found something strange in fread(),
if i set the length to be read to a big big value php returns a mix of
strange random error messages combined with html code from my script and
from the contents read by fread :)
oh yeah.. how do i read in contents from http:// file? what do i write for
the length in fread()?
$fp=fopen("http://anywhere.org/some/stuff.php","r");
$con=fread($fp,$con_len);
fclose($fp);
what do i write for $con_len?
thanks,
v.
--
+++REPLY TO [VIRUS_AT_INDEX.HU]+++