$_server 'remote_addr' not working properly
if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip_address = $_SERVER['REMOTE_ADDR'];
}
Also in PHP:
- check array is exist
- capital letter php
- Expression #1 of ORDER BY contains aggregate function and applies to the result of a non-aggregated query laravel
- enable helper methods laravel 6
- det day in php
- 0 and 1 toggle php 7
- difference entre deux date php
- file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL
- add variable days to datsphp
- date( Y-m-d
- ?name=value php
- download php artisan
- date( ) php
- fetch visitor ip address php
- error_reporting php debug
- STR_TO_Time('" . $purchaseDate . "', '%Y-%m-%d %H:%i:%s'), php
- echo all error
- create random unique password with php
- <?php echo date(" h: i : s A");?>
- 1 PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes")
- phpmake string all lowercase
- convert string to timestamp php
- currrent datetime to string php
- array unique in laravel