Computer's name

General discussions related to php

Moderators: macek, egami, gesf

claudio.junior
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Aug 25, 2003 2:14 pm

Computer's name

Postby claudio.junior » Mon Aug 25, 2003 2:19 pm

Good Night my Friends!
I'm a beginner in PHP and this question may sound silly.
Is there any chance for me to print on the page "the name of the computer" that is visiting the web site?
Or if I can set the "name of the computer" value in a variable an then print it!
I don't know what language to use: Javascript, php, VB,...

If there is a way, how can I do it?
Please help, I'll appreciate. :D

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Re: Computer's name

Postby swirlee » Mon Aug 25, 2003 2:40 pm

claudio.junior wrote:Good Night my Friends!
I'm a beginner in PHP and this question may sound silly.
Is there any chance for me to print on the page "the name of the computer" that is visiting the web site?


By "name" I can only assume that you're talking about the "Computer Name" that Windows systems have. The answer is no, unless you happen to be on the same LAN. You can retrieve a lot of information about the visitor, like IP address, browser, and whatnot, but not the computer name. This may be possible using JavaScript, but I can't say for sure.

claudio.junior
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Aug 25, 2003 2:14 pm

Ok

Postby claudio.junior » Mon Aug 25, 2003 6:49 pm

Thank you! I'm gonna try to find another way, then i'll post the solution here!
Bye!

User avatar
tryton
New php-forum User
New php-forum User
Posts: 49
Joined: Wed Jul 09, 2003 8:25 am
Location: Joze
Contact:

Postby tryton » Mon Aug 25, 2003 7:20 pm

What good would the name of the computer be??

Swirlee, love the sig.

sigix
php-forum Active User
php-forum Active User
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Postby sigix » Tue Aug 26, 2003 10:55 pm

one can get the ip address of the user browsing.... :arrow:


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 1 guest