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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts

    Browser/PC Functions

    Is there a way I can identify what PC is accessing my website? I want to create an instructional video and control (if possible) from which PC the video is accessed from? I want to license one central company to be able to run my instructional videos. I want to put the controlling info into a MySQL database and check the parameters when a user logs in.

    Thanks...
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Code:
    echo $_SERVER['REMOTE_ADDR'];
    will give you the IP address of the requesting machine
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts
    Is there any other identifying information about the PC I can determine such as the serial number of the hard drive? I know you can get that kind of info when writing a win32 application.
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #4
    Regular Coder
    Join Date
    May 2008
    Location
    Ohio
    Posts
    231
    Thanks
    3
    Thanked 21 Times in 21 Posts
    "what user information we can get via php scripts when visit website" - what user information we can get via php scripts when visit website

    "Predefined variables"
    http://us.php.net/variables.predefined

    And to answer your question: No, you can not get any info on their computer (outside of what browser they're using). You can get some info on their operating system if you know how to use nmap... but that takes a while (depending on what kind of probing you do) and has nothing to do with php. You could write some Activex or Java that might be able to do something like that, but once again - that's got nothing to do with php.

  • #5
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    You can get the OS from the user-agent.


  •  

    Posting Permissions

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