Sinisterly
[PHP] Steal IP - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: PHP (https://sinister.li/Forum-PHP)
+--- Thread: [PHP] Steal IP (/Thread-PHP-Steal-IP)

Pages: 1 2


[PHP] Steal IP - KaiT_AleX - 07-21-2011

This is my script.. I hope you will use it..

PHP Code:
<? $file = "ip.txt"; $ip = $_SERVER['REMOTE_ADDR']; $handle = fopen($file, 'a'); fwrite($handle, "IP Address: "); fwrite($handle, "$ip"); fwrite($handle, "\n"); fclose($handle); ?>




[PHP] Steal IP - KaiT_AleX - 07-21-2011

This is my script.. I hope you will use it..

PHP Code:
<? $file = "ip.txt"; $ip = $_SERVER['REMOTE_ADDR']; $handle = fopen($file, 'a'); fwrite($handle, "IP Address: "); fwrite($handle, "$ip"); fwrite($handle, "\n"); fclose($handle); ?>




RE: [PHP] Steal IP - Shadow Hunter - 07-21-2011

be sure i am gonna use it Smile. thank you. will you explain all the lines, i am trying to learn php myself. thanks again.


RE: [PHP] Steal IP - Shadow Hunter - 07-21-2011

be sure i am gonna use it Smile. thank you. will you explain all the lines, i am trying to learn php myself. thanks again.


RE: [PHP] Steal IP - KaiT_AleX - 07-21-2011

tnx...i will explain to you, but i am busy right now.. Maybe tommorow.. I don't know...
I am sure somebody can do it today... If nobody do it i will do it tommorow ! Biggrin
And if you like it give me +1 ! Biggrin


RE: [PHP] Steal IP - KaiT_AleX - 07-21-2011

tnx...i will explain to you, but i am busy right now.. Maybe tommorow.. I don't know...
I am sure somebody can do it today... If nobody do it i will do it tommorow ! Biggrin
And if you like it give me +1 ! Biggrin


RE: [PHP] Steal IP - 1234hotmaster - 07-21-2011

http://www.hackcommunity.com/Thread-PHP-IP-Catcher

:epic:


Explanation:

$file = "ip.txt" is a variable saying file is a string containing "ip.txt"

$ip = $_SERVER['REMOTE_ADDR']; is a variable which gets a environment value. $_SERVER['REMOTE_ADDR'] will return your ip.

$handle = fopen($file, 'a'); Create a handle type variable for writing to the ip.txt. a handle is needed for both reading and writing. the 'a' is for appending. 'w' for overwriting. 'r' for reading.

fwrite($handle, "IP Address: "); uses the handle to write to that file saying "IP Adress: "

fwrite($handle, "$ip"); writes your ip adress stored in a variable to the file

fwrite($handle, "\n"); adds a New line to the file like <br> in HTML

fclose($handle); closes the handle in a variable and releases all resources



tell me if i missed anything Smile





RE: [PHP] Steal IP - 1234hotmaster - 07-21-2011

http://www.hackcommunity.com/Thread-PHP-IP-Catcher

:epic:


Explanation:

$file = "ip.txt" is a variable saying file is a string containing "ip.txt"

$ip = $_SERVER['REMOTE_ADDR']; is a variable which gets a environment value. $_SERVER['REMOTE_ADDR'] will return your ip.

$handle = fopen($file, 'a'); Create a handle type variable for writing to the ip.txt. a handle is needed for both reading and writing. the 'a' is for appending. 'w' for overwriting. 'r' for reading.

fwrite($handle, "IP Address: "); uses the handle to write to that file saying "IP Adress: "

fwrite($handle, "$ip"); writes your ip adress stored in a variable to the file

fwrite($handle, "\n"); adds a New line to the file like <br> in HTML

fclose($handle); closes the handle in a variable and releases all resources



tell me if i missed anything Smile





RE: [PHP] Steal IP - KaiT_AleX - 07-21-2011

Oh..I see that but i have already posted it, and i dont can to erase


RE: [PHP] Steal IP - KaiT_AleX - 07-21-2011

Oh..I see that but i have already posted it, and i dont can to erase