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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -