Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First create a text file ipaddresses.txt
- In your web site or Crippling
- Now create a PHP ip.php file Put this code in it
- Code :
- <? php
- $ ip = $ _SERVER ['REMOTE_ADDR']; // sets the visitors IP ($ _SERVER ['REMOTE_ADDR']) to the variable "$ ip"
- $ handle = fopen ('ipaddresses.txt', 'a +'); // opens ipaddresses.txt for reading and writing (MUST HAVE FILE NAMED ipaddresses.txt)
- fwrite ($ handle, "{$ ip} \ n"); // writes the IP address to ipaddresses.txt
- fclose ($ handle); // closes ipaddresses.txt for reading and writing
- ?>
- -You must have the same your text file in the shell or the control panel Name
- FOPEN ('ipaddresses.txt
- Link to give anyone a result will appear in your text file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement