Vous n'êtes pas identifié(e).
Pages :: 1
Bonjour je souhaite lancer un serveur de jeux via une page php que j'ai faite mais j'ai un peu de difficulté avec les variable php pour les inclure dans la commande ssh pouvez vous m'aider ?
voici ma page test
?>
merci et bonne journée !
Hors ligne
utiliser pour le ssh2
$bin = $_POST['bin'];
$path = $_POST['path'];
$alias = $_POST['alias'];
$options = $_POST ['options'];
$screen = $_POST['screen'];
$start = "screen -AmdS " . $screen;
if (isset($_POST['start'])) {
//$start = "cd ". $path . " && screen -AmdS " . $alias . " ./" . $bin . " " . $options;
echo ssh2_exec($connection ,$start);
}
?>
Par contre maintenant j'ai cette erreur WTF quoi ..
[Wed Jul 31 10:01:17 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Notice: Undefined index: bin in /var/www/clients/client3/web5/web/dev/panel/test.php on line 29
[Wed Jul 31 10:01:17 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Notice: Undefined index: path in /var/www/clients/client3/web5/web/dev/panel/test.php on line 30
[Wed Jul 31 10:01:17 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Notice: Undefined index: alias in /var/www/clients/client3/web5/web/dev/panel/test.php on line 31
[Wed Jul 31 10:01:17 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Notice: Undefined index: options in /var/www/clients/client3/web5/web/dev/panel/test.php on line 32
[Wed Jul 31 10:01:17 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Notice: Undefined index: screen in /var/www/clients/client3/web5/web/dev/panel/test.php on line 33
[Wed Jul 31 10:01:20 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Notice: Undefined variable: shell in /var/www/clients/client3/web5/web/dev/panel/test.php on line 4, referer:
[Wed Jul 31 10:01:20 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Notice: Undefined variable: user in /var/www/clients/client3/web5/web/dev/panel/test.php on line 4, referer:
[Wed Jul 31 10:01:20 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Notice: Undefined variable: password in /var/www/clients/client3/web5/web/dev/panel/test.php on line 4, referer:
[Wed Jul 31 10:01:20 2013] [warn] [client 93.95.60.226] mod_fcgid: stderr: PHP Warning: ssh2_auth_password() expects parameter 1 to be resource, null given in /var/www/clients/client3/web5/web/dev/panel/test.php on line 4,
et sur ma page test.php j'ai Resource id #2 qui apparaît ..
Dernière modification par WENKz (31-07-2013 12:37:38)
Hors ligne
Pages :: 1