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