That doesn't seem to work. I went to the manual and looked at a few different things that are similar to the backtick.
The code of my file looks like this:
<?
function reconnect() {
/* //backtick: did not work
$result = /usr/local/mysql/bin/mysqld &;
echo "$result";
//system(): did not work
$result = system("/usr/local/mysql/bin/mysqld &",$result);
echo "$result";
*/
//passthru(): Works without the &. however, without the &, nothing happens.
passthru("/usr/local/mysql/bin/mysqld &",$result);
echo "$result";
echo "\n<b>Could not connect to the database.</b>";
if ($result) {
echo "\n<BR><i>Refresh and try again.</i>";
} else {
echo "\n<BR><i>Failed to restart socket. Please contact the webmaster and notify them.</i>";
}
}
$connection = @mysql_connect() or die(reconnect())
?>
Is there something I'm doing wrong in one of the codes?
Thank you for your quick reply,
Raif.