Help! (with a probably simply answered topic)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
P.C. Vielle
Forum Newbie
Posts: 4
Joined: Mon May 04, 2009 3:42 pm
Location: E57

Help! (with a probably simply answered topic)

Post by P.C. Vielle »

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!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Help! (with a probably simply answered topic)

Post by requinix »

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.
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)

Post by P.C. Vielle »

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!*


Last bumped by P.C. Vielle on Wed May 06, 2009 4:28 pm.
Post Reply