Importing .sql file thru php.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Flamie
Forum Contributor
Posts: 166
Joined: Mon Mar 01, 2004 3:19 pm

Importing .sql file thru php.

Post 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?
Post Reply