Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
  Print Thread
Standard User nilulk
(newbie) Mon 01-Jun-09 06:30:16
Print Post

Putting URL on page


[link to this post]
 
Anyone know if it's possible to automatically put the current URL into the page. Say I want a landing page with the domain on it, but don't want to handcraft each page for each domain.

Thanks in advance

Standard User SamsonUK
(knowledge is power) Mon 01-Jun-09 10:24:40
Print Post

Re: Putting URL on page


[re: nilulk] [link to this post]
 
Just use php?

Here is an example.
Standard User deleted
(deleted) Mon 01-Jun-09 10:53:36
Print Post

Re: Putting URL on page


[re: SamsonUK] [link to this post]
 
Hehe "The site you have chosen has been categorized as: Journals and Blogs, Substance Abuse "

Does he mean whats called a wrapper? embedding an existing website in a webpage? you can do that through the CMS Joomla or by hand coding it somehow. I use it by embedding a pre defined store in my page.


Register (or login) on our website and you will not see this ad.

Standard User girishanthan
(newbie) Wed 22-Jul-09 06:14:18
Print Post

Re: Putting URL on page


[re: nilulk] [link to this post]
 
$HTTP_HOST ought to just do the domain itself, explode() off the www or regex it to strip out the rubbish.

If you are building a holding page for names it is worth logging everything eg.

$date = date("l dS of F Y h:icrazy A");
$ip = $_SERVER['REMOTE_ADDR'];
$browser = $HTTP_USER_AGENT;
$os = $_ENV["OS"];
$referer = $HTTP_REFERER ;
$searchterm = "FRONTPAGE";

Nice and handy to find out who is visiting site, where they have come from, what they did prior to contacting you etc etc. Logging IP's can be handy to see previous visits as well.

Others do things far more in depth than the above, but it can be very handy

  Print Thread

Jump to