PHP code example of se7enxweb / expsite-data-media
1. Go to this page and download the library: Download se7enxweb/expsite-data-media library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
se7enxweb / expsite-data-media example snippets
$results = expSiteInstaller::runMediaInstall();
$installer = new expSiteDataMediaInstaller(); // paths from expsite_data_media.ini
// or: new expSiteDataMediaInstaller( 'extension/expsite_data_media/data', 'var/site/storage' );
$installer->replaceConflicts = false; // data.sql (INSERT OR IGNORE) — default
// $installer->replaceConflicts = true; // data-replace.sql — overwrites conflicts!
$output = $installer->installDataPack(); // array of log lines