I am trying to make a script that uploads a script to the FTP, reads it, takes its information and puts it in the database and then delete the file.
I can do the first and last thing of uploading and deleting the file. The file is a .txt file and it is in the Format of
Name
Url
Email
So the textfile could look like:
Josh Weissbock
http://www.elarune.net
xxx@xxx.com
Now how can I read through the textfile and get each line on a variable? I know I need to use the fopen, and fread etc. However I do not know how to use them. Whenever I do I get parse errors and I end up getting fustrated. I do read the php.net manual and they do not seem to help me.
Josh