Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- problem in using system to run a program.
October 18, 2006, 5:14 pm
rate this thread
system('GPA.exe ' . $filename);
to run a program GPA.exe
this program do the following things.
and will generate another file
HOWEVER, the problem is, there is no new file generated and I doesn't
get an exception.
I don't know why. Can somebody give me a clue?
Sorry for posting such silly questions, I am really new to PHP.
Thanks a lot
Re: problem in using system to run a program.
created file in "the current directory"
......which in the web-server context ends up undefined,
or perhaps defaulting to an illegal area.
exe sounds like windows stuff, which I try hard to know
little about. But that sort of trouble often happens on
a unix-like system.
(when you run the program the user is you.
When the webserver runs the program the 'user'
has another definition and another permission set)