Hello!
I am trying to execute a program from PHP that will add users to our Post.Office server. However, the program seems to return any error codes on STDERR. This causes a problem, in that i can't seem to figure out how to capture the errors!
I have tried many things, the two main ones being
exec("addacct $login > $login.results");
(results in a file with no contents)
and
$resultfp = fopen("php://stderr" ,"r");
$result = exec("addacct $login");
$contents = fread($resultfp, 2500);
print $contents;
(outputs nothing)
Any help is GREATLY appreciated!
Thanks!
Andy Rosen
arosen@s5di.com