Page 1 of 1

Importing .sql file thru php.

Posted: Tue Apr 08, 2008 1:00 pm
by Flamie
Hey, I'm just wondering if there was a built in PHP or MySQL feature to import a file into a database.
I could explode on ';' and run them individually, I could also use the mysqli wrapper to usethe "multiquery" function they have.
But I feel both of these are more of a workaround than a solution.
Any ideas?