This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sql_import class. | |
* | |
* Reads a SQL file (e.g. a dump from phpmyadmin) and executes it programmatically. | |
* | |
* Handles procedures, triggers etc. and can load large dumps. Great for | |
* installer scripts to load up a db schema and populate with initial data. | |
* | |
* Came from: http://stackoverflow.com/questions/147821/loading-sql-files-from-within-php |