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);
?>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to