![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 58 Pomógł: 2 Dołączył: 16.11.2008 Ostrzeżenie: (10%) ![]() ![]() |
Kod <?php if ($_POST['restart']){ $stop = file_get_contents('ventrilo_srv.pid'); exec('kill ' . $stop); exec("./ventrilo_srv"); { $refresh = ($_GET['index.php']); if ($refresh) $message = "Serwer został zrestartowany"; } } ?> jak zrobic odswiezenie strony po nacisnieciu buttonu restart Ten post edytował tenior 16.11.2008, 13:20:10 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 30 Pomógł: 3 Dołączył: 7.03.2006 Ostrzeżenie: (0%) ![]() ![]() |
exec("./ventrilo_srv");
wywal './' z komendy jesli masz wlaczony safemode to zanim uruchomi execa, argument jest filtrowany przez escapeshellcmd i ./ zostanie zamienione na .\/ wiec, sprobuj po prostu exec("ventrilo_srv"); chyba ze to jakis skrypt, to dodaj do wywolania komendy interpreter moze zadziala... edit: btw. jak uruchamiasz $_POST['start'] to tez jest err 500 ? Ten post edytował dsk 16.11.2008, 22:34:33 |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 58 Pomógł: 2 Dołączył: 16.11.2008 Ostrzeżenie: (10%) ![]() ![]() |
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 10.10.2025 - 12:10 |