Re: Text from file into database
| From: | John Holmes | Date: | Sun, 22 Aug 2004 18:18:22 +0000 |
| Subject: | Re: Text from file into database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194423@lists.php.net to get a copy of this message | ||
Phpu wrote:
Hi, I have a file, test.txt. The containig of this file is: line 1 line 2 line 3 ------ and so on I want to create a script that will read each line of the file and insert it to database. I am new to php and maybe you could help mehttp://us2.php.net/fopen http://us2.php.net/fgets Then try the chapter in the manual for whatever database you're using... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com