gamehead200 Posted June 28, 2003 Share Posted June 28, 2003 Guys, what's the PHP script that will display the EXTERNAL IP address? I don't mean the IP address given to a computer on a network, I mean one given to a modem... Link to comment Share on other sites More sharing options...
XPerties Posted June 29, 2003 Share Posted June 29, 2003 http://www.hotscripts.com/PHP/index.html Link to comment Share on other sites More sharing options...
gamehead200 Posted June 29, 2003 Author Share Posted June 29, 2003 I checked that, but everything seems to be not what I'm looking for... Link to comment Share on other sites More sharing options...
AlmondScar Posted June 30, 2003 Share Posted June 30, 2003 try a site which displays your ip addresses, then check teh source code it should work Link to comment Share on other sites More sharing options...
gamehead200 Posted June 30, 2003 Author Share Posted June 30, 2003 That source code usually contains my IP anywayz... Link to comment Share on other sites More sharing options...
vcant Posted June 30, 2003 Share Posted June 30, 2003 i could help you if you wanted it in ASP,ASPX.but know nothing about PHP. in asp you need to request a server variable, may be its the same in PHP? Link to comment Share on other sites More sharing options...
XPerties Posted June 30, 2003 Share Posted June 30, 2003 <?phpprint ('Your IP is: '.$REMOTE_ADDR.'.');?><p> <a href="http://www..net/"></a></p>http://www.xperties.net/test.php Link to comment Share on other sites More sharing options...
XPerties Posted June 30, 2003 Share Posted June 30, 2003 oh btw....... Replace <?phpprint ('Your IP is: '.$REMOTE_ADDR.'.');?> with <?phpprint ('<font size="X">Your IP is: '.$REMOTE_ADDR.'.</font>');?> where X is the font size between 1 and 5If you want to change the sizes Link to comment Share on other sites More sharing options...
Glitch Posted July 3, 2003 Share Posted July 3, 2003 You are all wrong, he said an IP given to a modem not the users IP and all that font crap When coding a site I use the KISS wayK - KeepI - ItS - SimpleS - Stupidtry looking for IP code snippetts on google because most of the minter codes are not on the main sites like hotscripts because people dont like giving them awayI would try http://netcode.tkGlitch Link to comment Share on other sites More sharing options...
gamehead200 Posted July 3, 2003 Author Share Posted July 3, 2003 <?phpprint ('Your IP is: '.$REMOTE_ADDR.'.');?><p> <a href="http://www..net/"></a></p>http://www.xperties.net/test.phpPerfect! Thanks XPerties! Link to comment Share on other sites More sharing options...
Robertson Posted July 3, 2003 Share Posted July 3, 2003 Glitch, its short and simple and the code couldnt be any better really, its only function is to print an IP adress, its not hes coding for a whole site.And theres alot of open source scripts on hotscripts that are amazing really and makes me wonder why developers are charging people to use and view their source code. But still people do still sell their codes on hotscripts. Link to comment Share on other sites More sharing options...
XPerties Posted July 3, 2003 Share Posted July 3, 2003 You are all wrong, he said an IP given to a modem not the users IP and all that font crap Modem is the user IP. And could you be any more ruder?That script gives the IP to the modem, not the IP within a network, as he asked for.And as you would say all that font crap, that was simply just if he wanted to edit it. *Future note, be a little nicer in your replies* Link to comment Share on other sites More sharing options...
AlmondScar Posted July 3, 2003 Share Posted July 3, 2003 You are all wrong, he said an IP given to a modem not the users IP and all that font crap When coding a site I use the KISS wayK - KeepI - ItS - SimpleS - Stupidtry looking for IP code snippetts on google because most of the minter codes are not on the main sites like hotscripts because people dont like giving them awayI would try http://netcode.tkGlitchyo, what Xperties gave out was as simple as b & w. dont call people stupid, it starts arguments, and don't say crap when theres no need to Link to comment Share on other sites More sharing options...
gamehead200 Posted July 4, 2003 Author Share Posted July 4, 2003 <?phpprint ('Your IP is: '.$REMOTE_ADDR.'.');?><p> <a href="http://www..net/"></a></p>http://www.xperties.net/test.phpXPerties, are using PHP 5? Cause I tried it and its not working...Can you possibly send me the file? Link to comment Share on other sites More sharing options...
XPerties Posted July 4, 2003 Share Posted July 4, 2003 Actually it version 4 and it worked for me, but when I get home Ill send it to you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now