ipsBruno

(PHP) Checar streaming MMS

May 6th, 2012
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. /*
  2.  *  Copyright (c) 2012 [iPs]TeaM
  3.  *  Bruno da Silva (email@brunodasilva.com)
  4.  *  Checar se servidor MMS (Microsoft Streaming) está online em PHP
  5.  *
  6.  * mmsCheck.exe -> http://www.solidfiles.com/d/d36fd2b876/ (precisa)
  7.  * mmsCheck Source -> http://pastebin.com/SXgUTUB0
  8.  
  9.  * www.brunodasilva.com
  10.  * www.ips-team.forumeiros.com
  11. */
  12.  
  13. // server
  14. $mmsServer = "mms://100automoto.tv/100livesport";
  15.  
  16. // call executable
  17. exec("mmsCheck.exe " . $mmsServer);
  18.  
  19. if(file_exists("servidorOnline")) {
  20.     unlink("servidorOnline");
  21.  
  22.     // if mms online
  23.     echo "MMS Stream Online";  
  24. }
  25. else {
  26.  
  27.     // if mms offline
  28.     echo "MMS Stream offline";
  29. }
Add Comment
Please, Sign In to add comment