Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]odpalanie shoutcasta
zaba12
post
Post #1





Grupa: Zarejestrowani
Postów: 223
Pomógł: 0
Dołączył: 29.08.2003
Skąd: Gliwice

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


witam mam taki kod, i on zamiast odpalic nastepny proces to na te same miejsce wbija sie inny port a tamten zostaje wyłaczony;/

  1. <?php
  2. if ($_GET['action']=='start'){
  3. if($_GET['starts'] == '1') {
  4.  $q = "SELECT * FROM panel WHERE login='{$_SESSION["login"]}'";
  5. $r = mysql_query ($q);
  6.  
  7. $plik = @fopen("servy/{$rr['shout_port']}","wbr+");
  8. $data = (isset($_GET['starts'])?"".strtr($rr['shout_data'], $rr):'');
  9. fwrite($plik, $data);
  10. chmod ("servy/{$rr['shout_port']}", 0777);
  11. @fclose($plik);
  12.  
  13.  #  if(file_exists("servy/{$rr['shout_port']}") == false) {
  14.  #  mkdir ("servy/{$rr['shout_port']}");
  15.  #  #passthru("cp -R /etc/play/content /etc/play/{$_POST['port']}/content");
  16.  #  }
  17. $query = "UPDATE panel SET shout_on='1' WHERE login='{$_SESSION["login"]}'";
  18. $result = mysql_query ($query);
  19. addlog("Uruchomiono Serwer ShoutCast");
  20. passthru("/usr/sbin/shoutcast /opt/lsws/DEFAULT/html/servy/{$rr['shout_port']} > /dev/null &");
  21. }
  22. header("Location: index.php");
  23.  }
  24. ?>


Ten post edytował zaba12 7.08.2007, 23:24:40
Go to the top of the page
+Quote Post

Posty w temacie
- zaba12   [php]odpalanie shoutcasta   7.08.2007, 23:10:24


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: 23.08.2025 - 17:45