progammatically create db through cpanel not working
Posted: Tue Sep 14, 2010 8:57 am
Hi
This is supposed to create a MySQL database called test, using cpanel hosting:
but doesn't.
Can any body please tell me why...
Chris
Oops! I left out some code:
This returns
Chris
This is supposed to create a MySQL database called test, using cpanel hosting:
Code: Select all
$execute = execCommand("http://cneeds:somepassword@inandrias.com:2082/frontend/x3/sql/adddb.html?db=test");Can any body please tell me why...
Chris
Oops! I left out some code:
Code: Select all
function execCommand($command) {
global $curl_path;
if (!empty($curl_path)) {
return exec("$curl_path '$command'");
}
else {
return file_get_contents($command);
}
}
.
.
.
$curl_path = ""; // coz I don't know how to use this!!
$execute = execCommand("http://cneeds:somepassword@inandrias.com:2082/frontend/x3/sql/adddb.html?db=test");
When I make $curl_path = '/usr/bin/curl'; I don't get any errors but I also don't get any database!Not Found
The server was not able to find the document (./frontend/x3/sql/adddb.html) you requested.
Please check the url and try again. You might also want to report this
error to your web hosting provider.
cpaneld/11.25 Server at inandrias.com
Chris