[PHP] Steal IP - Printable Version +- 0Day Forums (https://0day.red) +-- Forum: Coding (https://0day.red/Forum-Coding) +--- Forum: PHP (https://0day.red/Forum-PHP) +--- Thread: [PHP] Steal IP (/Thread-PHP-Steal-IP) Pages:
1
2
|
[PHP] Steal IP - extramorainal912983 - 07-21-2011 This is my script.. I hope you will use it.. PHP Code: <? RE: [PHP] Steal IP - cathleennqrkhxpeq - 07-21-2011 This is my script.. I hope you will use it.. PHP Code: <? RE: [PHP] Steal IP - karyolysis718767 - 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 - businessaflfytfifq - 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 - handedness79 - 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 ! RE: [PHP] Steal IP - tingle406 - 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 ! RE: [PHP] Steal IP - unbacked529 - 07-21-2011 [To see links please register here] :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 - strade916 - 07-21-2011 Oh..I see that but i have already posted it, and i dont can to erase RE: [PHP] Steal IP - dabblers470031 - 07-21-2011 no no keep it i don't mind RE: [PHP] Steal IP - multisense661109 - 07-21-2011 no no keep it i don't mind |