Ok on my site i got access to a specific file secured by only allowing whitelisted ips allowed to access the file (all done in php not .htaccess)
else die, it displays an error saying access denied, how do i get it to save the users ip and date + time in a text file, the variable for the users ip is $host
it is not a duplicate because i need to know how to log as a text file. thanks