exec()/system() not working

Hi,

I’m having some trouble with the exec/system functions. Frankly, they’re just simply not working properly. They’ll execute some functions, but not others. For instance, they’ll execute ‘pwd’, but not ‘ls’. I’ve tried a number of different unix functions at this point, and there seem to be more that aren’t functioning than are.

Why would this be? How can I fix it? Thanks.

Dumb question here but…

Are you on a nix or windows server?

After two days of being able to solve this issue, there are no dumb questions! :wink:

It’s a machine running redhat with an apache server.

I do know windows server do not recognize ls - it’s dir /s or dir /r if my memory serves…

I setup a box with redhat about 14 years ago - I don’t remember to much about it now, sorry.

I’m guessing a redhat forum would be a better place to seek help, but maybe some more educated person here can assist.

Sponsor our Newsletter | Privacy Policy | Terms of Service