Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Sep 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Trying to pull the machine name, user, and IP from the registry

    I am using a Trouble ticket system (online)
    http://www.stripe-man.com/ts/
    but I just need 3 features added to it.

    I need the abilty to pull the machine name, current user, and IP from the registry and Automaticlly place this into the form ... it is NOT required for this info to be placed into the database. The reason I do not need it placed into the database is because the customers use roaming profiles and use different machines.

    Thanks for any help. I hope I have provided enough informaion.
    __________________________
    Stripe-man
    Stripe-man@stripe-man.com
    http://www.stripe-man.com

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    Iran
    Posts
    695
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The registry of the client machine or your server? And I don't understand the meaning of a Trouble system, I openned your page and it's just an authentication page asking for username/password. Maybe it's because of my bad English (I've never seen this term), but if you wana get the client machine's registry, I don't think that it's possible using PHP. But for getting the IP of your user, you can use $_SERVER["REMOTE_ADDR"]

  • #3
    New to the CF scene
    Join Date
    Sep 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Registery of the client. In fact i guess, now that I think about it, it may not be nessesary to pull this from the registry...

    A trouble ticket system is a web (this one is) based system for uses to submit trouble tickets - used for tracking and time accountability.

    I just need to get the machine name! Some how!

    u can log on as:

    user: urhd002
    pass: password

    Thanks!
    Last edited by Stripe-man; 09-17-2003 at 09:17 AM.
    __________________________
    Stripe-man
    Stripe-man@stripe-man.com
    http://www.stripe-man.com

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    Iran
    Posts
    695
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your explanation on the subject. But why do you need to get my machine name and what do you exactly mean by machine name? I'm not on a network for example and what could be the name of my machine? Is it the user that I use in Windows or what? You need a unique serial number??

  • #5
    New Coder
    Join Date
    Sep 2003
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ip = Possible
    Going through somone elses register = not possible? unless you use a windows exploit

    just use cookies, they are stored on a per user basis

  • #6
    New to the CF scene
    Join Date
    Sep 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok....

    IT does not have to go through the registery... there is a windown global varible (%computername%) that can pull the computer name. My question is how do i get PHP to display this info?

    why?
    Because when a user submits a trouble ticket I want the machine name to be pulled into their form automatically because we KNOW where each and all PC are on our network. If we know WHAT machine has the prob and we dont have to have the user INPUT the machine name (because they are also lazy) then this just makes our job easier!

    Again .. thanks for your time.
    __________________________
    Stripe-man
    Stripe-man@stripe-man.com
    http://www.stripe-man.com

  • #7
    Regular Coder
    Join Date
    Jul 2002
    Location
    Iran
    Posts
    695
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You say that you know the place of each computer, right? Ok, why don't you get the IP (you can find your computer in the network if you have it's IP) and then match it against a table that you made in mySql, this table has 2 fields, IP and Computer Name, so, for each new computer in your network you have to add it's IP and name to that table and then you can easily pull it out later. How's that?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •