
June 4th, 2000, 07:07 AM
|
|
Junior Member
|
|
Join Date: Jun 2000
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
hi,
For some reason, I cannot read until the end of the data on a socket..
the feof() in the following code just hangs forever.. - i want it to
return all the text until the socket is empty, but nothing comes back!
Any help would be VERY much appreciated.
function ftpcon($Hostname,$Username,$Password,$Directory)
{
$fp = fsockopen($Hostname, 110);
while(!feof($fp)) {
echo fgets($fp,128);
}
fclose($fp);
exit;
}
thanks
ajit
|