Forum Moderators: coopster

Message Too Old, No Replies

External programs ---Grrrrrrrrrrr

         

ktsirig

12:04 am on Oct 30, 2005 (gmt 0)

10+ Year Member



Hi all!
I have just installed my first Linux distribution (SUSE 10.0).
Everything is compiled as far as Apache, Mysql & PHP is concerned.
But, I have this problem: I call system commands through PHP using system, shell_exec etc
The thing is that PHP responds OK when it comes to 'ls' or 'grep' or 'wget', but, in another program,
not UNIX-native, there is no response.
I am sure that the program is set up in the PATH, because, if I open a terminal, I can call it from everywhere and it works fine!
Any ideas on why PHP can't call it like 'ls' for example?

**One thing that really angries me is that in the University, these things work fine, and the external program is called without any problem. **

coopster

5:16 pm on Oct 31, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Have you checked the error log to make sure you have the correct permissions to run the program?