Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I read a environment variable on loading a web page?

Status
Not open for further replies.

Sina

Technical User
Jan 2, 2001
309
CA
Hi everyone,

Here is the chanlenge.
On our Intranet, I have to read the netbios name to determine the what page to load for the workstation.

How can this be done?
i.e, I have to read the netbios name and based on that provide a custome page.

Can you suggest a way to do this?

Regards
Sina
 
Whatever a netbios is, well you'll need to use a server side script which finds that out - then redirects depending what it finds.

If netbios is a client side thing, then find it out from the client machine - then redirect client side.

P.S. what is netbios? ;-)
b2 - benbiddington@surf4nix.com
 
Thanks,
Ok netbios is the name of the workstation.

How would the web page read the workstation name befor showing the proper page.

i.e I can run the set command and find out what the workstation name is and then stor it in a text file. But how would the web page read this info?

Thanks
 
So this is an intranet problem really isn't it? So you reckon write a text file every time the client logs on? Hmm I don't know about that - I think you need to find out where the information is stored on either the server, or the client machines. Then set up some identification process - or a variable that the server can query.

web page can read info using SSI:

<!--#include file=&quot;filename.txt&quot; -->

But I don't think this will help you right now.It depends on what you want it for I suppose, is it so the user can customise their home page or something?
b2 - benbiddington@surf4nix.com
 
The Browser is TCPIP. Your network is NetBios, and it uses NetBios commands. I don't know if this can be done, but if it can, it will be an NT technology. NetBios is Microsoft.Try the ASP forum, or the NT one. Dean Owen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top