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
Code:
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:Code:
$oExec = $WshShell->Run($cmdline, 0, $m);
Et toutes la "variable"Code:
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é
Merci d'avance
NV.
Up !?
Salut, Quelle est la valeur de $cmdline au moment où tu exécutes ?
Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois. Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.