cant launch or close vlc w/ php and Apache
Posted: 20 Apr 2006 01:00
hello to everyone, ive been banging my head on the table for quite some time now because of the vlc HTTP interface, Apache and PHP
BTW i am not experienced with apache, im using ubuntu(LinuX) and its allready configured from install, also im no coder.
this index page has 3 form buttons start vlc, gotto http nterface and close vlc
start vlc php code, cant seem to pass the command through
close vlc, same as above
bassically i cannot get php to pass a single shell argument,
i also tried exec() with no luck
any help - much appreciated
BTW i am not experienced with apache, im using ubuntu(LinuX) and its allready configured from install, also im no coder.
this index page has 3 form buttons start vlc, gotto http nterface and close vlc
Code: Select all
index.html
<html>
<center>
<br><br><br><FORM METHOD="LINK" ACTION="vlc.php">
<INPUT TYPE="submit" VALUE="Start VLC">
</FORM>
<FORM METHOD="LINK" ACTION="http://youll-never-know.org:4358">
<INPUT TYPE="submit" VALUE="Gotto Remote">
</FORM>
<FORM METHOD="LINK" ACTION="closevlc.php">
<INPUT TYPE="submit" VALUE="Close VLC">
</FORM>
</center>
</html>
Code: Select all
vlc.php
<?php
system("(/usr/bin/vlc /home/spine/video --intf=http --http-host 192.168.1.100:4358 --fullscreen) >nul");
?>
Code: Select all
closevlc.php
<?php
system("(killall vlc) >nul");
?>
i also tried exec() with no luck
any help - much appreciated