Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php exec to C program that writes file
January 31, 2005, 8:58 am
rate this thread
I'm trying to use the exec() call in php to run a program that I've
written and compiled from C. This program attempts to create a new
file and write data into it.
If I simply run the program from the shell, it writes the file no
problem. If i run the program through an exec call in a php script,
however, the program executes but it seems to not have the correct
permissions to be able to write the file.
Can anyone help me? I've been stumped here for awhile.
- Tim Van Wassenhove
January 31, 2005, 5:38 pm