how do i make apache user run C programm

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ogo796
    New Member
    • Jan 2008
    • 44

    #1

    how do i make apache user run C programm

    Hi everyone, i am trying to use php file to run C program but nothing actually is happening when i use exec() ,system(). i thought about the permission problem
    but i don't know how do i go about making apache user to run C program.

    please anyone help.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Originally posted by ogo796
    but nothing actually is happening when i use exec() ,system().
    then check the function return values or the log files (error log)


    Originally posted by ogo796
    but i don't know how do i go about making apache user to run C program.
    what’s that got to do with the PHP programme?

    Comment

    • Dheeraj Joshi
      Recognized Expert Top Contributor
      • Jul 2009
      • 1129

      #3
      Do you want to call C functions in PHP?? or you want to execute a C program in PHP. If you want to call a C function in PHP you can use ZEND or SWIG....

      Have you tried executing your C program in PHP as

      Code:
      echo `a.out` ;
      a.out is out file of your C program

      Regards
      Dheeraj Joshi
      Last edited by Dheeraj Joshi; Sep 29 '09, 11:44 AM. Reason: Changed ENGLISH

      Comment

      Working...