How do I create a page which shows my ip?
Posted 15 June 2010 - 08:16 AM
I want to create such a page like in this website
How do I do that?
In a simple description, I want to create a page on my website which shows my vistors their IP address and if possible there mac address to.
Posted 15 June 2010 - 08:29 AM
I didn't know that this code is written by java!
What about server side programing languages?
If you have more things that might help me, please add them too.
This post has been edited by CrazyDoctor: 15 June 2010 - 08:36 AM
Posted 15 June 2010 - 03:16 PM
Depends on the particular server-side language you want.
Either ways, a quick google search turns up countless relevant results.
Posted 15 June 2010 - 04:23 PM
<?php $text='<html><head><title>PHP Environment</title></head><body>'. '<table style="border-collapse: collapse;" cellpadding="1">'; foreach ($_SERVER as $key => $val) $text.='<tr onMouseOver="this.style.backgroundColor=\'AAAABB\';" '. 'onMouseOut="this.style.backgroundColor=\'transparent\';">'. '<td style="font-weight: bold; border-right: 2px solid #000000;">'. $key.'</td><td style="width: 100%;">'. (is_array($val)?nl2br(print_r($val,true)):$val).'</td></tr>'; $text.='</table>'; echo $text.'</body></html>'; ?>
...and how it is executed can be seen by pressing this link
This post has been edited by VideoRipper: 15 June 2010 - 04:24 PM
Posted 05 July 2010 - 06:57 PM
You really helped me alot!
I found this site which shows my IP.
I tried to look over it's code to understand the function who finds my IP but I can't find anything.
It seems like part of the code is hidden from visitor, am I right?
How does this site works and build?
What function and language does this site use in order to detact my IP?
Posted 05 July 2010 - 09:39 PM
Posted 07 July 2010 - 07:52 AM
I guess that I can't see the code (PHP) of the this site? do I?
I tried to get view source but nothing like PHP.
Is what I see the outcome of the PHP code that run on the site's server?
- ← Unable to link tot page within pdf in IE from cd-rom
- Web Development (HTML, Java, PHP, ASP, XML, etc.)
- eBay RSS feed problems →