Lost Password?


  #1 (permalink)  
Old 03-22-2007, 10:46 PM
Jaan's Avatar   
Jaan Jaan is offline
Mod
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 930
Last Blog:
AdStar Ad Control Pa...
Rep Power: 16
Jaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the rough
Send a message via MSN to Jaan
Default Check your IP

Well this is simple trick. Well i can't say it's a trick but.. well..

The way you see your IP

PHP Code:
<?php
echo $_SERVER['REMOTE_ADDR'];
?>
__________________


Cheap & Professional Web Design | Need help? Send a PM

Last edited by Jaan; 01-17-2008 at 09:45 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-21-2007, 09:58 AM
twalters84 twalters84 is offline
Learning Programmer
 
Join Date: Oct 2007
Posts: 56
Rep Power: 5
twalters84 is on a distinguished road
Default

Hey there,

Instead of outputting the IP address, you could store it in a variable and then get the hostname of the user.

PHP Code:
<?php
$hostname 
gethostbyaddr($_GET['ipAddress']);
echo 
$hostname;
?>
I had to use this on my coldfusion server because the host blocked the Java(CreateObject) method.

Sincerely,
Travis Walters
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-28-2007, 09:39 PM
Jaan's Avatar   
Jaan Jaan is offline
Mod
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 930
Last Blog:
AdStar Ad Control Pa...
Rep Power: 16
Jaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the rough
Send a message via MSN to Jaan
Default

Quote:
Originally Posted by twalters84 View Post
Hey there,

Instead of outputting the IP address, you could store it in a variable and then get the hostname of the user.

PHP Code:
<?php
$hostname 
gethostbyaddr($_GET['ipAddress']);
echo 
$hostname;
?>
I had to use this on my coldfusion server because the host blocked the Java(CreateObject) method.

Sincerely,
Travis Walters
Well yea you can try it.. but it don't work always
__________________


Cheap & Professional Web Design | Need help? Send a PM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-28-2007, 10:16 PM
PlayaSkater's Avatar   
PlayaSkater PlayaSkater is offline
Learning Programmer
 
Join Date: Aug 2007
Location: Cruzer, US
Age: 17
Posts: 63
Rep Power: 5
PlayaSkater is on a distinguished road
Default

What's the JavaScript method?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-29-2007, 01:32 AM
Jaan's Avatar   
Jaan Jaan is offline
Mod
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 930
Last Blog:
AdStar Ad Control Pa...
Rep Power: 16
Jaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the rough
Send a message via MSN to Jaan
Default

HTML Code:
<html>
<head>
<script language="JavaScript">
function disp_ip(){
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write(ip)
}
</script>
</head>
<body>
<form>
<input type='button' value='Check your Ip' onClick='disp_ip();'>
</form>
</body>
</html>
But you have to use .shtml extension not .html or .htm because it uses server side includes
__________________


Cheap & Professional Web Design | Need help? Send a PM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 10-29-2007, 02:01 AM
PlayaSkater's Avatar   
PlayaSkater PlayaSkater is offline
Learning Programmer
 
Join Date: Aug 2007
Location: Cruzer, US
Age: 17
Posts: 63
Rep Power: 5
PlayaSkater is on a distinguished road
Default

Thanks bro, you're awesome. How long have you been programming?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-29-2007, 09:12 AM
Jaan's Avatar   
Jaan Jaan is offline
Mod
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 930
Last Blog:
AdStar Ad Control Pa...
Rep Power: 16
Jaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the rough
Send a message via MSN to Jaan
Default

np mate..
umm.. i think umm.. maybe 2,5 years for now ^^
__________________


Cheap & Professional Web Design | Need help? Send a PM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 09:29 AM
deny deny is offline
Newbie
 
Join Date: Oct 2007
Location: Find-Ip-Address.org
Posts: 13
Rep Power: 0
deny is on a distinguished road
Default

Quote:
Originally Posted by Jaan View Post
Well yea you can try it.. but it don't work always
If there is not any host name it will not works. Otherwise it will display host address.
So you can use both code!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check My Blog Deathcry Site Reviews 7 01-14-2008 09:57 PM
Check if a file exists? Lop Pascal/Delphi 3 01-07-2007 01:54 AM
How Do I check my HTML? skilletsteve HTML Programming 1 09-13-2006 12:12 PM
Check if a file exists Lop C and C++ 4 08-07-2006 11:03 PM
Best way to check if an object is null? dirkfirst Managed C++ 0 08-01-2006 08:29 AM


All times are GMT -5. The time now is 05:57 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads