<?php include "external.class.php"; $stream = External::program("./program", "Test") ->arg("argument1") ->arg("argument2") ->args(array("argument3", "argument4")) ->run(); print $stream; ?>
info at phpclasses dot org