Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Refresh strony, po nacisnieciu na button
tenior
post
Post #1





Grupa: Zarejestrowani
Postów: 58
Pomógł: 2
Dołączył: 16.11.2008

Ostrzeżenie: (10%)
X----


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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
tenior
post
Post #2





Grupa: Zarejestrowani
Postów: 58
Pomógł: 2
Dołączył: 16.11.2008

Ostrzeżenie: (10%)
X----


  1. <?php
  2. if ($_POST['restart'])
  3. {
  4. $stop = file_get_contents('ventrilo_srv.pid');
  5. exec('kill ' . $stop);
  6. exec("./ventrilo_srv");
  7.  
  8. header('Location: index.php');
  9. }
  10.  
  11.  
  12. if ($_POST['stop']){
  13. $stop = file_get_contents('ventrilo_srv.pid');
  14. exec('kill ' . $stop);
  15. }
  16.  
  17.  
  18. if ($_POST['start']){
  19. $start = exec("./ventrilo_srv");
  20. }
  21. ?>




ventrilo_srv robi najpierw stop, ale przy startowaniu ten blad wyskakuje czyli 500

Ten post edytował tenior 16.11.2008, 20:32:03
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 12:27