Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php ip log

$logfile= 'log.txt';
$IP = $_SERVER['REMOTE_ADDR'];
$logdetails= date("F j, Y, g:i a") . ': ' . '<a href=http://dnsstuff.com/tools/city.ch?ip='.$_SERVER['REMOTE_ADDR'].' target=_blank>'.$_SERVER['REMOTE_ADDR'].'</a>';

$fp = fopen($logfile, "r+");

fwrite($fp, $logdetails, strlen($logdetails));
fclose($fp);
Comment

PREVIOUS NEXT
Code Example
Php :: Laravel How do I get distinct values from the table along with the count of how many rows there are containing that value 
Php :: laravel get id from insert 
Php :: session not working php 
Php :: laravel restrict route methods 
Php :: wp reserved image size names 
Php :: php check if all array values are the same 
Php :: connect sql server php 
Php :: admin-ajax.php 400 (bad request) 
Php :: laravel read csv file 
Php :: laravel livewire-datatable delete column pop up issue 
Php :: if else if php code reflect 
Php :: mail sending setting magneto for mailhog 
Php :: laravel mail send to multiple recipients 
Php :: how to read sqlite file in php 
Php :: same column in and where laravel query 
Php :: laravel run all seeders 
Php :: laravel latest from relationship 
Php :: operators in php 
Php :: select option in laravel 
Php :: get filesize php 
Php :: laravel cors enable 
Php :: trait php 
Php :: how to call php function from ajax 
Php :: laravel get route parameters in blade 
Php :: php clear post data 
Php :: get post id contact form 7 
Php :: eager load relationships by default in the model laravel 
Php :: php all date arguments 
Php :: Creating Laravel and Vue Project 
Php :: ?? php 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =