doSQL() is a PHP4 script that can dump data back from a SQL text file
(generated by backupDB() (also available on this site), phpMyAdmin,
or similar) to a new database, or run any number of SQL commands in batch mode.
Detailed progress reporting, including time remaing, processing rate (text and
graph available). click to vote
Download this file:
download doSQL.zip v1.2.11 [12.5 kB] HTTP | ed2k (first released Jan 17 2002 - updated Feb 13 2005)
These files is just available so you can browse the source online - download the zip package above to run this script