5

selinux to allow running irsend from apache

view full story
linux-howto

http://forums.fedoraforum.org – I created execute.php as follows Code: <?php $descriptorspec = array(   0 => array("pipe", "r"),  // stdin   1 => array("pipe", "w"),  // stdout   2 => array("pipe", "w"),  // stderr ); $process=proc_open('/bin/irsend list "" ""',$descriptorspec,$pipes,dirname(__FILE__), null); if(is_resource($process)) {     fwrite($pipes[0],"");     fclose($pipes[0]);     $stdout=stream_get_contents($pipes[1]);     fcl (HowTos)