<?php $completeURL="//".$_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]; echo completeURL; ?>
https://www.tutorialjinni.com/get-full-url-in-php.html