Salut à tous,
J'ai télécharger il y a un moment sur le forum de sa-mp le panel web en php pour SAMP de westie's
Tout fonctionne bien sauf quand je lance le serveur j'ai ce message d'erreur
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Unknown<br/><b>Description:</b> Unknown' in C:\Inetpub\vhosts\redwood-valley.com\httpdocs\panel\data\core.php:1371 Stack trace: #0 C:\Inetpub\vhosts\redwood-valley.com\httpdocs\panel\data\core.php(1371): com->Run('cmd /C start /D...', 0, false) #1 C:\Inetpub\vhosts\redwood-valley.com\httpdocs\panel\data\core.php(1392): ServerCore::RunCommand('start /D "C:\In...') #2 C:\Inetpub\vhosts\redwood-valley.com\httpdocs\panel\data\core.php(1225): ServerCore::StartProgram('C:\Inetpub\vhos...', 'ss.exe') #3 C:\Inetpub\vhosts\redwood-valley.com\httpdocs\panel\data\core.php(48): ContentCore::Main() #4 C:\Inetpub\vhosts\redwood-valley.com\httpdocs\panel\index.php(6): ContentCore() #5 {main} thrown in C:\Inetpub\vhosts\redwood-valley.com\httpdocs\panel\data\core.php on line 1371
Et voici la ligne en question:
$oExec = $WshShell->Run($cmdline, 0, $m);
Et toutes la "variable"
if($serverversion == "win")
{
$cmdline = "cmd /C $cmd";
if($mode == 'FG')
{
$outputfile = EXEC_TMP_DIR."\\".time().".txt";
$cmdline .= " > $outputfile";
$m = true;
}
else $m = false;
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run($cmdline, 0, $m);
if($outputfile)
{
$retStr = file_get_contents($outputfile);
unlink($outputfile);
}
else $retStr = "";
return $retStr;
}
Si un bon en php pourrai m'aidé :P
Merci d'avance