Opening a Unidirectional Pipe Using popen()
<?php $pr1 = popen('ls', 'r'); echo fread($pr1, 1024); $pr2 = popen('php', 'w'); fputs($pr2, '<?php touch("myfile.txt"); ?>'); ?>