php - Get the redirecting URL -
i redirect url in php using following code:
header('location: http://site.com/target.php');
how url redirected target? tried code it's not working:
echo $_server["http_referer"];
thanks
try this:
<?php echo "http://" . $_server['http_host'] . $_server['request_uri']; ?>
Comments
Post a Comment