How to import .sql file in mysql database using php
<?php // Name of the file $filename = 'DBNAME.sql'; // MySQL host $mysql_host = 'localhost'; // MySQL username $mysql_username = 'root'; // MySQL password $mysql_password = ''; // Database name…
<?php // Name of the file $filename = 'DBNAME.sql'; // MySQL host $mysql_host = 'localhost'; // MySQL username $mysql_username = 'root'; // MySQL password $mysql_password = ''; // Database name…
A PHP Class for Interacting with cPanel's XML-API https://github.com/CpanelInc/xmlapi-php <?php include("xmlapi.php"); $db_host = "localhost"; $cpaneluser = "cpaneluser"; $databasename = 'mydatabasename';//do not prepend with username $databaseuser = 'databaseuser';//api will do that…
In some cases override method is not working in prestashop 1 .6 for overcome this issue we need to remove or rename the following file from root cache folder delete/rename the…
<?php $src = 'myfolder'; $dst = 'dest'; $files = glob("myfolder/*.*"); foreach($files as $file){ $file_to_go = str_replace($src,$dst,$file); copy($file, $file_to_go); } ?>
Create Sub domain : function create_subdomain($subDomain,$cPanelUser,$cPanelPass,$rootDomain) { // $buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain; $buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain . "&dir=public_html/subdomains/" . $subDomain;…
RewriteEngine On # Assuming you're running at domain root. Change to working directory if needed. RewriteBase / # www check # If you're running in a subdirectory, then you'll need…