CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Can I read the address typed in at the browser?

Print topic Send  topic

Author Message
rick@fgritter.com
Posted: 09/20/2002, 11:38 AM

I'm building each of my systems in subdirectories on my web site. Each has a domain name that I've parked at my primary domain name. Can I use PHP to read the address typed in at the browser, and then send back the appropriate page for that address? This is mostly a way of avoiding extra cost while I am developing some sites. Thanks for your help on this.
Nicole
Posted: 09/21/2002, 3:03 AM

Hello,
use PHP server variables to get server name:
echo HTTP_SERVER_VARS["SERVER_NAME"];

to get the list of all vars use phpinfo() function.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.