Computing.Net > Forums > Web Development > Calling 'net start' from PHP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Calling 'net start' from PHP

Reply to Message Icon

Name: RTAdams89
Date: October 8, 2007 at 17:30:49 Pacific
OS: xp home
CPU/Ram: na
Product: na
Comment:

I have a PHP web page which shows various system info of the server it is served from. I have several windows command line outputs stored as variables with the PHP commands:

$ipconfig = `ipconfig -all`;
exec("netstat -n", $connections);
$services= `net start`;
$drivers= `drivers`;

Later, I can display these variables on the page. All of them work except for the $services one. When I try t display $services, I just get a blank line. The same issue occurs for and "net" command output I try to store as a variable. Why is this?

-Ryan Adams
http://ryanadams.blogsite.org



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Calling 'net start' from PHP

Parallel port control via PHP www.computing.net/answers/webdevel/parallel-port-control-via-php/1747.html

pHp Tutorials and download. www.computing.net/answers/webdevel/php-tutorials-and-download/1171.html

Script to add/delete data from site www.computing.net/answers/webdevel/script-to-adddelete-data-from-site/1007.html