current url php
$fullURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";$protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https';
$host = $_SERVER['HTTP_HOST'];
$script = $_SERVER['SCRIPT_NAME'];
$params = $_SERVER['QUERY_STRING'];
$currentUrl = $protocol . '://' . $host . $script . '?' . $params;
echo $currentUrl;
Also in PHP:
- check type php
- Yii::app()->request->get yii1
- check if strcontains
- convert timestamp to date in php
- codeigniter insert id
- current url php
- Difference in days of two dates in php
- cideigniter orLike()
- avoir la date php
- check if string has word php
- date("l",$date) php
- TreeBuilder::getRootNode()" before creating the root node is not supported, migrate to the new constructor signature instead.
- access PHP error log
- determine the date format from a string php
- Unhandled exception on throw php
- db connection in php
- clear cache laravel in server
- 12 hrs for preg match with single and double digit in php
- ERROR 1071 (42000) at line 76: Specified key was too long; max key length is 767 bytes laravel
- 500 server error laravel handle
- command not found: laravel
- array_unique in laravel collection
- check if array contain key php
- create php artisan db:seeder