The fullUrl is a variable that stores the complete URL of the user's current webpage, including the protocol (http:// or https://), domain name, and any query parameters.
Example:
Suppose the user is currently on the webpage https://www.example.com/search?q=php. The fullUrl variable would store the value https://www.example.com/search?q=php.
Code example:
//getting full URL $fullUrl = "http".(!empty($_SERVER['HTTPS'])?"s":"")."://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
//outputting full URL echo $fullUrl;
Package/Library: This code does not use any external package or library as it is using built-in PHP functions to retrieve the full URL.
PHP Request::fullUrl - 30 examples found. These are the top rated real world PHP examples of Request::fullUrl from package someline-starter extracted from open source projects. You can rate examples to help us improve the quality of examples.