Meek Consulting Websites
Daily Archives: April 13, 2011
Run subcommand and return output to variable in PHP
If you need to run a subcommand and pull the output you can use the proc_open like below. Kevin <?php $descriptorspec = array( 0 => array(“pipe”, “r”), // stdin is a pipe that the child will read from 1 … Continue reading