Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- John Smith
January 23, 2007, 6:12 pm
rate this thread
New to this, have the basics, can build a form and such. My problem is I
need to be able to open a file on a pc/s on the network, read the data
character by character, check to see if a certain character is present, if
it is, update the database and continue reading the file until it comes
across the character again, updates the database and so on . . . .
Anybody got any suggestions, all help gratefuly received!!
Re: Read the contents of a text file into MySql using PHP
Go to www.php.net and search for:
- fopen() and file() to open and read files (even over http)
- substr() to get pieces out of a string.
Or use the array-index approach:
$myStr = "hello";
echo $myStr; // will echo e