Is there a way to find out from which site i got redirected to in PHP?

Avni

New member
I am writing a php code in which i am redirecting from site A to site B, both site are mine. I was wondering what is the code to find out the URL of site A when site B opens.
I need to put that URL in a variable.
how should i use $_SERVER["HTTP_REFERER"] in my site B to find out the URL of site A by using
 
You can slow down your internet, stop when it is trying to redirect, and then read the source code. If they are both your own site though, you should be able to access all the code yourself?
 
Back
Top