Page 1 of 1

shell_exec command isnt working

Posted: Wed Apr 14, 2004 8:42 am
by pelegk2
i am trying to do :

Code: Select all

shel_exec('C:\\del peleg.kkk');
or

Code: Select all

shel_exec('C:\del peleg.kkk');
and i doesnt work! why?

Posted: Wed Apr 14, 2004 8:45 am
by malcolmboston
for one you have a spelling mistake

this works

Code: Select all

shell_exec('/var/www/myscript');
Just a quick reminder for those trying to use shell_exec on a unix-type platform and can't seem to get it to work. PHP executes as the web user on the system (generally www for Apache), so you need to make sure that the web user has rights to whatever files or directories that you are trying to use in the shell_exec command. Other wise, it won't appear to be doing anything.

Posted: Wed Apr 14, 2004 8:48 am
by pelegk2
yes it s shell_exec
and its on windows 2000
i read somewhere that maybe the shell_exec command is disabled but i cant find where it is :(