I have a problem with the exec function. When I use this code:
$res=exec("XValue 100 200",$X_Number,$r);
echo "$X_Number" //The first item that i echoed in my program code
echo "$r" //The returned value from my program
it doesn't seem to work. The program (XValue) returns a number. it works on my windows system, but it doesn't work on my Red Hat Linux system. Does anybody have an idea of what's going wrong?