Unable to invoke CUDA program from PHP.

I would like to invoke my CUDA program from PHP using exec command under linux environment.

i.e <?php exec("filename",$outputArray); ?>

But no results as well as errors are found. When executing the compiled CUDA directly, it is working.

Is there any solution? Please help me.