Storing system information into MYSQL using PHP

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
kalp1200
Forum Newbie
Posts: 19
Joined: Tue Aug 26, 2008 8:57 pm

Storing system information into MYSQL using PHP

Post by kalp1200 »

Hi everyone

Just wanna ask if is the following possible and how to about doing it

a) Is there a way the php code can be designed to access system information like
- Hard disk size
- Amount of memory
- Processor type
- OS installed
- Ethernet type ( LAN mac address )
( I need it in detail,as in, if its OS type, I need the code to retrieve the license type, and so on )

is it possible, and I want this to be stored in the database
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Storing system information into MYSQL using PHP

Post by Christopher »

Some of that information is available in the superglobal $_SERVER variable. The rest you can get using exec(). I would recommend the PHP manual to you.
(#10850)
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Storing system information into MYSQL using PHP

Post by Zoxive »

Just a side note, the only information like this you can get is from the server.

The only information you can get from the client is from what the browser as request headers.
Post Reply