Hi,

Friday, January 2, 2004, 3:56:35 AM, you wrote:


RK> Ok I changed it to look this way but it still is not working
RK> $filenum="test";
RK> $fpHt = fopen($filenum, "r");
RK> while(feof($fpHt)) {
RK> $fpLine = fgets($fpHt,512);
RK> $fpLine = trim($fpLine);
RK> $fpData = explode(":", $fpLine);
RK> $fpData[0] = trim($fpData[0]);
RK> echo $fpData[0];
RK> }

RK> And no I am just reading a .htpasswd file to get the user name out of
RK> it


should be while(!eof.....

-- 
regards,
Tom

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

Reply via email to