php system($cmd,$ret);?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nevosoftware
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 10:04 am

php system($cmd,$ret);?

Post 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,
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sounds like a permissions problem.
nevosoftware
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 10:04 am

Post by nevosoftware »

what can I do?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ensure that IUSR_whatever has the permissions to run whatever you're trying to use.
nevosoftware
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 10:04 am

Post by nevosoftware »

by what ever do you mean the website it self or what?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
nevosoftware
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 10:04 am

Post by nevosoftware »

hey thank you really...
nevosoftware
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 10:04 am

Post by nevosoftware »

ok I gave IUSR_* permission to read and execute but it doesn't I still get a -1
nevosoftware
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 10:04 am

Post by nevosoftware »

the external program is still not executing and I gave the IUSR_* permission to read and execute.
Post Reply