User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,192 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,568 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

isp auto-detect

Join Date: Sep 2007
Posts: 96
Reputation: cwarn23 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 9
cwarn23 cwarn23 is offline Offline
Junior Poster in Training

Re: isp auto-detect

  #3  
May 10th, 2008
It took a long time looking at the page you have suggested but I found the answer deep within the page ShawnCplus suggested. Below is the script I found deep within the suggested link which works perfectly.
<?php
    $ip = $_SERVER['REMOTE_ADDR'];
    $fullhost = gethostbyaddr($ip);
    $host = preg_replace("/^[^.]+./", "", $fullhost);

echo $host;
?>
So thanks ShawnCplus as your reply will really help with preventing bots from spamming my forum.
*Solved*
Signature note:
Do not edit the registry just because someone on the forum says so. Do some research on the internet before editing the registry.
Reply With Quote  
All times are GMT -4. The time now is 8:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC