But how can i put into a var $total the total lines that i have into the file?
Rafael
>f you use the file() function to open up the file, it will put each line
>of the file into an array. At that point you can say:
>
>for($i=5;$i<11;$i++){
>
>print $myFile[$i];
>
>}
>
>
>Michael
>
>
>Rafael Faria wrote:
>
>>
>>
>>Hey Guys,
>>it's my first post on this list, and my doubt is...
>>
>>how can i take a file.txt and
>>
>>1 - know how many lines i have in this text
>>2 - print line 5 until 10
>>
>>?
>>
>>can someone help me?
>>
>>
>>
>>
>>
>>---
>>
>>[ r a f a e l f a r i a] _____________________
>>[EMAIL PROTECTED]
>>WebMaster Universo Online - http://www.uol.com.br
>>Phone # +55 11 3038-8665
>>
>
>
>
---
[ r a f a e l f a r i a] _____________________
[EMAIL PROTECTED]
WebMaster Universo Online - http://www.uol.com.br
Phone # +55 11 3038-8665
--
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]