Why don't you want just make a system() with this command mysql -u username -p password database < sql_file?
In reply to Re: Executing a file of SQL commands against MySQL server
by Gangabass
in thread Executing a file of SQL commands against MySQL server
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |