Code:
<?php
if(isset($_GET['c']))
{
$command='WACommand.exe /'.$_GET['c'];
$exec=exec($command." 2>&1");
if($exec){echo $_GET['c'];}
echo $command;
}
?>
<form action="c.php" method="get">
<input type="radio" name="c" value="playpause" /> Play/Pause<br />
<input type="radio" name="c" value="pause" /> Paus<br />
<input type="radio" name="c" value="next" /> Next<br />
<input type="radio" name="c" value="prev" /> Previous<br />
<input type="radio" name="c" value="fwd" /> +5 sec<br />
<input type="radio" name="c" value="rev" /> -5 sec<br />
<input type="radio" name="c" value="startmin" /> Start<br />
<input type="radio" name="c" value="quit" /> Quit<br />
<input type="radio" name="c" value="volup" /> Vol +<br />
<input type="radio" name="c" value="voldown" /> Vol -<br />
<input type="submit" value="Run" />
</form>
Above is the php script i wrot to control win amp with the help of WAComman but this doesnot work
i tried using nircm.exe all the function of nircmd.exe works fine with above command but this WACommand doesnot work....
the only proble is that nircmd.exe doesnot support to control winamp.
it only can open/close cd rom, set volume and other and other commands...
the main purpost to use this that my 1 pc is running 24 hrs a day so i would like to control it from mu cell phone via GPRS internet
but....