Passthru issues

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
kingconnections
Forum Contributor
Posts: 137
Joined: Thu Jul 14, 2005 4:28 pm

Passthru issues

Post by kingconnections »

I am running apache on a windows 2003 machine and I am trying to code a some wmi calls.

I am doing it like so :

Code: Select all

passthru(wmic bios get serialnumber);



When I run this the cmd box pops up but never populates with data. If i test with dir it comes back in my web page displayed.

Any ideas?

Thanks in advanced!
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Probably the user that is running IIS is different than the one you log in with at the win2003 machine... My first guess is that it's a permissions issue..
Post Reply