Page 1 of 1

Execute SQL file via php

Posted: Wed Apr 12, 2006 3:50 pm
by Pyrite
From a php script, how do I execute an multi-line/command SQL file?

Normally I just use phpMyAdmin to import sql files, but in this case I need to do it in my own script.

Thanks.

Posted: Wed Apr 12, 2006 4:04 pm
by feyd
There are snips available in raghavan20's threads found in Regex.