If End Of File

Discussion in 'PHP' started by redhits, Feb 18, 2009.

  1. #1
    for($i=1;$i<=$n;$i++){
    $line=fgets($rhandler,85); if($line==feof){echo 'fuck'; exit;} $line=trim($line);

    }

    How to do an IF END OF FILE?
    please not that i don't want to use the while(!eof... thing...
     
    redhits, Feb 18, 2009 IP
  2. websecrets

    websecrets Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    websecrets, Feb 18, 2009 IP