i'm trying to execute a program from my php. I want to execute it and pass it a variable, i've tried using exec($cmd, $op) but the array of $op doesn't have the output within it (or anything else).
Should i be using a different function to get this working? any help would be much appreciated.
n.b. safe mode is de-activated.