Your problem is with this line:

$adam=fread($ip,filesize($adam));

Remember that $adam is not a file pointer, but text
read from a file. The file pointer is $ip, so the line
should read:

$adam=fread($ip,filesize($ip));

(and should probably be contained within an if
statement for error handling).

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to