Kyle Smith wrote:

>ok i have this code to do whats below, but its not working
>
Try to use file(), which will return an array.
So that would be:

$lines = file(filename);
for($i=0; $i<2; $i++)
{
 print($lines[$i]);
}

/franklin




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to