Forum Statistics

  • Forum Members: 4,245
  • Total Threads: 3,572
  • Total Posts: 3
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 04-23-2009, 11:10 PM   #1 (permalink)
 
sanjalee's Avatar
 
Status: Newbie
Join Date: Apr 2009
Posts: 3

Rep Power: 12 sanjalee is on a distinguished road



Default Putting URL on page

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
__________________
home insurance quote california
sanjalee is offline Add Infraction for sanjalee   Reply With Quote
Old 04-24-2009, 03:20 AM   #2 (permalink)
 
sambitha's Avatar
 
Status: Newbie
Join Date: Apr 2009
Posts: 3

Rep Power: 12 sambitha is on a distinguished road



Default hai

Just use HTTP_HOST or SERVER_NAME, if you create a file called

info.php and put in it

<?php

phpinfo();

?>

That shows you call the info thats easily accessible
sambitha is offline Add Infraction for sambitha   Reply With Quote
Old 05-04-2009, 10:41 PM   #3 (permalink)
 
amandana's Avatar
 
Status: Newbie
Join Date: May 2009
Posts: 3

Rep Power: 12 amandana is on a distinguished road



Default hai

$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:i:s 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
__________________
Items For Sale
amandana is offline Add Infraction for amandana   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2