Re: [PHP] pulling text from a file

2008-03-21 Thread Richard Kurth
Richard Kurth wrote: I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? $lines = file_get_contents('clientlist1.txt'); $find="Address:"; $f= strstr($f,$find); $separat="City:"; $ADDRESS = sub

RE: [PHP] pulling text from a file

2008-03-21 Thread Jay Blanchard
[snip] I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? [/snip] Loop through with fopen and fgets http://www.php.net/fopen http://www.php.net/fgets -- PHP General Mailing List (http://www.p