In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> hello!
> 
> i need to include() only a given amount of lines (the first 10 for example)
> instead of a whole file.
> 
> does someone know how this has to be done?
> 
> 
> thanks a lot for your effort,
> best regards

include and friends only load a complete file. You might try fopen/fread 
and count the number of lines loaded.

Cheers
-- 
Quod subigo farinam

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?

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

Reply via email to