The Flash and PHP Bible has been released! The book can be found on Amazon or wherever fine books are sold in your area. This book explains the process of working with PHP in Flash, while creating real world examples that you can actually learn something from.
The Flash and PHP Bible has a dedicated forum for support and comments.
Here is a simple tutorial to display the visitors IP. You can also capture the IP and use it in other parts of your code.
<?php $user_ip = $SERVER['REMOTE_ADDR']; print "Your IP Address is " . $user_ip; ?>
The above lines of code grab the users IP address and display it. That is all there is to grabbing the users IP.
|
Jesse Sat Dec 3, 2005 7:46 am
Thanks, this is usefull :)
|
|
Callum Wed May 2, 2007 1:41 pm
This script is avalible everywhere but still its extemely useful. Thanks!
|
|
Joe Sat Aug 18, 2007 8:47 am
Where is the IP displayed?
|
|
Colin Wed Dec 19, 2007 3:39 pm
@Joe:
print "Your IP Address is " . $user_ip; Where it says $user_ip that shows them it. |
©2004 - 2008 scriptplayground | Privacy Policy | Legal
Validate Site: XHTML CSS | Designed by: mkeefeDESIGN |