I have written the following code for showing the version number of ghostscript:
<html>
<head>
<title></title>
</head>
<body>
<?
$ver = shell_exec("/usr/bin/gs --version");
//$ver = exec(GS_BIN . " --version");
print "$ver";
print "A";
?>
</body>
</html>
I can get the A printed, but not the version number why?
Thanks.
Possibly ghostscrsipt is writing the data out to STDERR instead of STDOUT. Try doing
to redirect stderr to stdout and try again