At 25.09.2001 01:19, Devon wrote:
>I am pulling down data from a switch which looks like
>Port 1, 33889029532
>Port 2, 0
>Port 3, 135852
>Port 4, 6652941243
>etc etc
>I need to know if it is possible with PHP to write a script that will pull
>the individual lines of this text file and store them into a mysql database
>line by line.

if the lines are exactly as you describe them (ie. comma-separated) read 
the file
line by line and use the explode() function to create an array of each line 
and flush
it to the db of your choice...

Andreas D Landmark / noXtension
Real Time, adj.:
         Here and now, as opposed to fake time, which only occurs there
and then.

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to