[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Domain Parking - Off Topic



Hello Gavin,

if you are using php or asp as well i think.
you can use the environment variables to return this information.
This will give information in the exact same way as shown by the  phpinfo()
command.

eg

get the environment value

	<?php
	$domain = getenv("SERVER_NAME");
	?>

then you have a string containing the tld typed,

eg

www.thedomaintyped.net

then all you need to do to use it is echo the string when needed.

eg

	<?php
	echo $domain;
	?>

however if you want to have something to say...

if you want email@xxxxxxxxxxxxxxxxxx

 you may have to truncate the host name (www) so that you dont get

email@xxxxxxxxxxxxxxxxxxxxxx

hope this helps!

Danny

Hi

Does anyone know how when you park a domain on an IP and someone goes to
that page by the url that it displays the page dynamically showing the url
you typed i.e. you create one page with a <domain.com> tag and when called
it displays the url type in.

Hope this make sense, I'm not a web developer and stupidly agreed to find
out for a friend thinking it would be easy.

Regards

Gavin

Gavin Nelmes-Crocker
Systems Engineer, Western EMEA
Server Appliance Business Unit
Sun Microsystems, Inc
308 - 314 Kings Road
Reading
RG1 4NR

+44 (0)1189 356225 (Tel)
+44 (0)1189 356210 (Fax)
+44 (0)7860 181700 (Mob)
gavin@xxxxxxxxxx
www.cobalt.com

The future's so bright I gotta wear shades

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users