Unanswered: $len=system("./test",$retval)..does not work
i am executing a C executable 'test' in PHP using the system() function.
if the 'test' file is compiled without linking to a library, it works fine.
however, if 'test' is compiled while simultaneously linking to library, the function does not work.
i compile as:
gcc -o test test.c -L/usr/local/lib -mylibrary -I.
in this case, $retval=127
if however, i compile as
gcc -o test test.c
system() executes properly. in this case, $retval=0
what is the problem. i cannot avoid using the library...