Page 1 of 1
This is probably terribly simple...
Posted: Thu Feb 24, 2005 11:40 am
by ryuujin7619
I was wondering if there was a way to read an entire file into an array, like the perl construction:
Code: Select all
open(FILE, "filename");
@data = <FILE>;
close(FILE);
Is there a good wqay to do this in PHP, or would I have to parse through the entire file line by line?
Thanks for your help!
Posted: Thu Feb 24, 2005 11:45 am
by feyd
Posted: Thu Feb 24, 2005 10:13 pm
by ryuujin7619
I was reading the manual, I must have just missed that page. Thank you for your help.
Posted: Thu Feb 24, 2005 10:17 pm
by smpdawg
Don't feel bad, I missed it too.

Posted: Thu Feb 24, 2005 10:19 pm
by feyd
it's somewhat understandable.. the function name isn't exactly informative, nor suggestive of it's nature.. plus it's real short
no big deal, either way.
Posted: Thu Feb 24, 2005 10:22 pm
by smpdawg
feyd - I've been meaning to ask you if you ever sleep LOL. I see post after post all the time from you but I have learned a lot from being on here.
Posted: Thu Feb 24, 2005 10:30 pm
by feyd
there's a few hours I sleep.. not many
although my online time here should drop in the next six months (starting school.. again) weee..
but enough off topic nonsense..
although patrik will testify that I'm a robot/clone.
