$_SERVER ['HTTP_HOST'] $_SERVER ['REQUEST_URI'], HTTP_HOST , URL uri .
define('URI', 'http://Salesforce.com');
echo URI. $_SERVER['REQUEST_URI'];
You cannot return a fragment of a fragment of a URI, since it is used only on the client. If you need it, you will have to manually send them to the server with some JavaScript.
user511866
source
share