Skip to content

Instantly share code, notes, and snippets.

@isears
Last active November 4, 2017 12:37
Show Gist options
  • Save isears/77f96b6b3dc9191ff95e5aa8402c60ad to your computer and use it in GitHub Desktop.
Save isears/77f96b6b3dc9191ff95e5aa8402c60ad to your computer and use it in GitHub Desktop.
<?php
// Only pertinent if cloning another installation database
if ( ! empty($installer->clone_database)) {
echo "Dumping source database...";
flush();
if ( ! $installer->create_dumpfiles() ) {
echo $installer->error_message;
break;
}
else {
echo " OK.<br>\n";
flush();
}
}
<?php
// Load the database files
$dump_results = $installer->load_dumpfiles();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment