I am using javascript top.location to retrieve parent location through javascript
What i wanted to know is there any way to get parent url through php?
I have tried $_SERVER with different parameters but i am getting the child window url.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
toprefers to a frame object. There is no way to distinguish a HTTP request for a document that will be rendered in a frame from one that will not.Therefore, there’s no equivalent to the client-side
top.locationin php (a server-side language). You can, however, block your page from being rendered in a frame by setting theX-Frame-OptionsHTTP header.