Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-24-2006, 05:59 PM   #1 (permalink)
 
Newb Techie

Join Date: Oct 2006

Posts: 29

zach014

Default PHP fread from a position

Is there a way to fread from a certain character point or line?
eg:

this is a complete
test file. That's it.
Please help me.

and fread only:

test file. That's it.
Please help me.

thanks in advance
--zach
zach014 is offline  
Old 11-25-2006, 11:06 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

use fgets to read line by line.

http://uk.php.net/manual/en/function.fgets.php
office politics is offline  
Old 11-26-2006, 12:58 PM   #3 (permalink)
 
Newb Techie

Join Date: Oct 2006

Posts: 29

zach014

Default

nevermind, i found it on PHP.net
zach014 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On