PHP

Current url fetch in php

Pinterest LinkedIn Tumblr

<?php

$request_url = “http://{$_SERVER[‘HTTP_HOST’]}{$_SERVER[‘REQUEST_URI’]}”;

echo $request_url; 

?>

Write A Comment

Faster PHP Cloud Hosting