Click to See Complete Forum and Search --> : Function to eval a cgi and return the value


turiaso71
02-09-2005, 06:38 AM
Hi
I need a function to eval an external cgi and return the value (0 or 1).

Perhaps it works with a function that executes the cgi and returns the value, but I try it and don`t works (I`m new in php programming). ¿Can you help me, please?

Thanks

NogDog
02-09-2005, 10:24 AM
Not sure if this is what you are looking for, but...

exec("path/to/program", $outputArray, $result)

...will output the UNIX result code to $result (and each line of any ouput will be saved in the array $outputArray).