Page 1 of 1
php system($cmd,$ret);?
Posted: Wed May 24, 2006 10:20 am
by nevosoftware
hi,
I'm having a problem when using system($cmd,$ret); when I use it with apache at my pc it works fine but when I use it in IIS in 2k3 server it doesn't works it returns a -1. Can any one Help me?
Thank You,
Posted: Wed May 24, 2006 10:31 am
by feyd
sounds like a permissions problem.
Posted: Wed May 24, 2006 10:33 am
by nevosoftware
what can I do?
Posted: Wed May 24, 2006 10:43 am
by feyd
ensure that IUSR_whatever has the permissions to run whatever you're trying to use.
Posted: Wed May 24, 2006 10:47 am
by nevosoftware
by what ever do you mean the website it self or what?
Posted: Wed May 24, 2006 10:50 am
by feyd
IUSR_* is a user created on the machine by installing IIS. IIS runs hosted content through this user to allow for restricting access to potentially sensitive information and files.
Posted: Wed May 24, 2006 10:55 am
by nevosoftware
hey thank you really...
Posted: Wed May 24, 2006 11:45 am
by nevosoftware
ok I gave IUSR_* permission to read and execute but it doesn't I still get a -1
Posted: Thu May 25, 2006 9:24 am
by nevosoftware
the external program is still not executing and I gave the IUSR_* permission to read and execute.