Hello, I'm new to the site, and also a bit new to PHP programming (but I do have a background in JavaScript). I would like to create a function to process a text file and split it along all of the carriage returns.
Help, please!
Help! (with a probably simply answered topic)
Moderator: General Moderators
-
P.C. Vielle
- Forum Newbie
- Posts: 4
- Joined: Mon May 04, 2009 3:42 pm
- Location: E57
Re: Help! (with a probably simply answered topic)
Oddly enough, there's already a function for that.
If you want to write your own (why?) then use fopen, fread, and fclose. Each of those links has examples on how to use them.
If you want to write your own (why?) then use fopen, fread, and fclose. Each of those links has examples on how to use them.
-
P.C. Vielle
- Forum Newbie
- Posts: 4
- Joined: Mon May 04, 2009 3:42 pm
- Location: E57
Re: Help! (with a probably simply answered topic)
Wow. I'd seen that function in use but never thought that it would do what I wanted it to.
I feel stupid now . . .
*sulk*
*Oh wait! I have a script to write!*
I feel stupid now . . .
*sulk*
*Oh wait! I have a script to write!*
Last bumped by P.C. Vielle on Wed May 06, 2009 4:28 pm.