NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page IP Addresses

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-09-2005, 04:26 PM THREAD STARTER               #1 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




IP Addresses


Is it possible to get the IP of someone who clicks a submit button? Because ATM on my image hosting site I have no way of telling who uploaded what. If so whats the php?
Barrucadu is offline  
Old 08-09-2005, 04:30 PM   #2 (permalink)
Account Closed
 
axilant's Avatar
Join Date: May 2004
Location: /etc/passwd
Posts: 2,178
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
 

Member of the Month
July 2005

PHP Code:
function getip()
????: NamePros.com http://www.namepros.com/programming/114171-ip-addresses.html
    {
        global 
$_SERVER;
        if (
$_SERVER['HTTP_X_FORWARD_FOR']) //stupid proxies! :P
        
{
            return 
$_SERVER['HTTP_X_FORWARD_FOR']; //get there real ip hehe
        

        else 
        {
            return 
$_SERVER['REMOTE_ADDR']; //they dont use a proxy :)
        
}
    } 
use that function...

and:
PHP Code:
$ip getip(); 
axilant is offline  
Old 08-20-2005, 04:00 AM   #3 (permalink)
NamePros Regular
 
Zubair1's Avatar
Join Date: Mar 2005
Posts: 912
Zubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really nice
 


AIDS/HIV
Well ,

I thing there is a way through javascript or when your validating the user's input

$User_IP = $_SERVER['REMOTE_ADDR'];

save the $User_IP in a database your ever you want and when you want to see
it you could make a script or edit personlally
__________________
Live Support : Zubair11 [at] hotmail.com
Free SEO Directory! || Free Online TV || Tech Blog
Web Design & Web Development Services || Reliable Web Hosting
Zubair1 is offline  
Closed Thread


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
### No Bandwidth Bills ever again from just £59.99 ### blackicehosting Web Hosting Offers 0 07-22-2005 10:16 PM
Dedicated Servers from just £45 $90 + [UK] 1 TB Data Transfer P4 3.0GHZ Only £119 blackicehosting Web Hosting Offers 0 07-12-2005 07:24 PM
Unmetered Summer Savings + 10% Discount blackicehosting Web Hosting Offers 0 07-02-2005 12:20 PM
#1 UK Redbus II Meridian Gate / US Los Angeles / DK Copenhagen :: FAST & RELIABLE blackicehosting Web Hosting Offers 0 05-01-2005 09:32 PM
#1 UK Redbus II /US LA /DK Servers :: FAST & RELIABLE blackicehosting Web Hosting Offers 0 04-23-2005 08:35 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:53 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger