function is_process_running($PID) { exec("ps $PID", $ProcessState); return(count($ProcessState) >= 2); } function kill_process($PID) { return (exec("kill $PID")); } function getPid($pidfile) { $ret = null; if (file_exists($pidfile)) { $pidfileHandle = fopen($pidfile, "r"); $ret = fread($pidfileHandle, filesize($pidfile)); fclose($pidfileHandle); } return $ret; } function right($value, $count) { return substr($value, ($count*-1)); } function stop() { } ?> Streaming Server Browser ".$f."\n"; echo "
\n"; $command = "vlc --pidfile=$pidfile -d \"$f\" $transcode"; run_in_background($command); echo "Watch Now\n"; echo "Stop\n"; echo "
\n"; } else { echo "

".htmlentities($dir, ENT_COMPAT, "ISO-8859-1")."

\n"; echo "
\n"; if (is_dir($dir)) { echo "\n"; } echo "
\n"; } ?>

Valid XHTML 1.0 Strict Valid CSS!