PDA

View Full Version : Get Enviroment Variables


aaronsillo
10-14-2002, 07:38 PM
Hi,

I want to display enviroment varibles like ComputerName, UserName, IP address, etc on a Web Page, How can I do it?

Best Regards

beetle
10-14-2002, 07:40 PM
Do you have access to any server-side scripting languages? Because javascript won't cut it for this....

aaronsillo
10-14-2002, 07:42 PM
No ...
Do you know if I can use VBScript to do it?, and How can I do it?
Thanks.

beetle
10-14-2002, 07:52 PM
You need something server side to get the IP.

Cold Fusion, ASP, PHP, Perl, Java, the list goes on...

To get the user's ComputerName and stuff, you'll need ActiveX probably (which is accessed via javascript) But it only works on Windows machines running IE.

Username? What username? Their OS username?

aaronsillo
10-14-2002, 07:55 PM
UserName is the name of the User using the PC. Do you know where I can find information about ActiveX and how use it with JavaScript?

Best Regards.

beetle
10-14-2002, 07:59 PM
Here's the results I got for searching 'ActiveX' as MSDN

http://search.microsoft.com/default.asp?qu=ActiveX&boolean=ALL&nq=NEW&so=RECCNT&p=1&ig=01&i=00&i=01&i=02&i=03&i=04&i=05&i=06&i=07&i=08&i=09&i=10&i=11&i=12&i=13&i=14&i=15&i=16&i=17&i=18&i=19&i=20&i=21&i=22&i=23&i=24&i=25&i=26&i=27&i=28&i=29&i=30&i=31&i=32&i=33&i=34&i=35&i=36&i=37&i=38&i=39&i=40&i=41&siteid=us/dev