PDA

View Full Version : [PHP] Get your IP adress


SaIRoS
09-17-2006, 03:57 PM
It's really userful script, for example you are using proxy server and want to know it's IP :P or maybe jsut to see what's your actual IP adress. Create new PHP document (just make a txt file and change the extension to php)
Start editing it with a text editor

Copy and paste this code into it:

<?php
$ip = $_SERVER['REMOTE_ADDR']; //gets the IP address
echo $ip; //displays IP adress
?>


Save and upload the file to your web host (PHP must be supported)
Point your browser to the PHP file you created (ex. http://yourdomain.com/ip.php ) Now it should show your IP adress

drugi
09-17-2006, 04:01 PM
or just go on this site :P
http://www.wieistmeieip.de (http://www.wieistmeineip.de)

SaIRoS
09-17-2006, 04:08 PM
or just go on this site :P
http://www.wieistmeieip.de (http://www.wieistmeineip.de)
[/b]

and see all those ads :down:

Jamana
02-06-2008, 01:00 PM
Pretty simple, how can i make it write the ip addresses on a file?

blackp
02-06-2008, 01:45 PM
well u use fopen (http://php.net/fopen), fread (http://php.net/fread), fwrite (http://php.net/fwrite) and fclose (http://php.net/fclose):)

Jamana
02-06-2008, 02:12 PM
well u use fopen (http://php.net/fopen), fread (http://php.net/fread), fwrite (http://php.net/fwrite) and fclose (http://php.net/fclose):)[/b]

That didn't explain anything, sorry
Can you give me a code snippet perhaps?

MagicOPromotion
06-04-2009, 04:09 PM
Just curious... are you sure php is enabled on your server? php handler set up right?

Have you successfully ran any php scripts on the server?

Create a php file and name it phpinfo.php or anything.php stick this line in it:

PHP Code:
<? phpinfo; ?>
The pointer your browser to it.

If you want, send (http://www.botmasternet.com/) me the script .php, html files and all and Ill get it figured out.

clevelandwebs AT gmail DOT com

Red Africa
06-09-2009, 12:33 PM
You might need to change the name of things, but this should get you understanding how to get the php results from a mysql database into flash AFTER you have successfully connected to the database.

This is actionscript

Code:

DeadHero
06-09-2009, 02:45 PM
Hmm. interesting.