![]() |
What's a script that will..
We have around 500 names parked on 1 site and want a script to detect the domain a surfer arrives on and display that that name as the text/logo? We would be willing to pay for an actual logo that would change the name as well similar to the geo targeted banners. If you can do the later send me an email to sales (@) namenetwork.com to discuss.
|
You can link all the domains to one place on your server with a single index.php, and just pull the current domain name out of $_SERVER
|
Quote:
|
On that index.php, put
<?php echo $_SERVER['HTTP_HOST']; ?> That will print out the name of the domain you are on. You can then do something like: <img src='/images/<?php echo $_SERVER['HTTP_HOST']; ?>.jpg'> for instance to pull a custom logo for that site, or grab <?php echo $_SERVER['HTTP_HOST']; ?>.css to load a different template, or whatever. That's a really simplified version of the idea but you should be able to elaborate from there. |
<?
$array = array( "www.domain1.com" => "Site Name1", "www.domain2.com" => "Site Name2", "www.domain3.com" => "Site Name3" ); ?> <img src="/logos/<? echo $_SERVER[HTTP_HOST]; ?>.jpg"><br> Welcome to <? echo $array[$_SERVER[HTTP_HOST]]; ?> |
What he said
|
Quote:
|
Don't worry about
|
If you still need help with it, hit me up icq: 33375924, or shoot me an email woj at wojfun dot com
|
All times are GMT -7. The time now is 11:48 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123