How do i obtain a users system and network information with PHP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EnglishmaninNY
    New Member
    • Sep 2009
    • 1

    How do i obtain a users system and network information with PHP?

    Hi,

    I am setting up a self service portal that an internal user can visit in order to obtain their system and network information to then copy/paste to the Helpdesk.

    The information i hope to obtain is as follows;

    IP Address:
    MAC Address:
    Username:
    Host Name:
    Domain Name:

    PHP is not my forte so any help is appreciated.

    Thanks
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    There is a pre-defined variable $_SERVER['xxxx'] in PHP that can get some information.
    But this information can be easily disguised

    Comment

    • TheServant
      Recognized Expert Top Contributor
      • Feb 2008
      • 1168

      #3
      Just a side note, MAC address cannot be found with PHP. Maybe if you're on a LAN< but even then, the hoops wouldn't be worth it.

      There are other ways, but I am not sure of them, especially over the internet. All I can think of is maybe ASP has something, but that is a guess.

      What do you mean username? Windows username? Same as MAC address I believe, very difficult unless you're local.

      Remember, PHP is server side, so client side stuff needs a client side language (most of the time :P )

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Originally posted by TheServant
        Just a side note, MAC address cannot be found with PHP.
        you may be able to get it using a shell command (arp is the programme of choice here, see here)

        Comment

        Working...