Dear all,
I met a problem with system().
It works fine with built-in commands. E.g., system("date"), system("ls").
However, it fails with external command. I wrote a simple c++ program hw.cpp, which prints "hello world". I cannot use system("./hw") to execute the program.
The php file and cpp file are within the same directory. I set the permission as 755, which I think should be correct.
Could you tell me what the problem is.
Thanks a lot!
- nlu