well this is just off the top of my head but
// Connect and select to database
OPEN MYSQL STUFF
$dp = opendir("/path/to/directory");
while (($file = readdir($dp))!==false) {
$fp = fopen($file,"r");
$line = fgets($fp, 500);
$array = explode(" ", $line);
fclose($fp);
MYSQL_QUERY("Insert into Table values($array[0], $array[1],$array[2],$array[3]));
}// end while
// Then you would close the database and stuff here
CLOSE DATABASE AND DO EXITING STUFF
Thats the best I can do on short notice 🙂. I hope that this helps....