hi i want to make a simple script which will basically open a remote URL but in a different way here is what i want 1. there is a url xyz.com/link which immediately redirects to xyz.com 2. i want the script to access xyz.com/link and not be redirected to xyz.com and output only the data of xyz.com/link what php function do i need to use for this? thanks
It depends what kind of redirect and where the redirect is, if it's a meta redirect at the bottom of the page it can be done, if it's a header redirect at the bottom of the page it can be done, if it's a header redirect at the top of the page, I dont think it can be done, same with 301 redirects.
xyz.com/link logs the visit in a database and then redirects me to the homepage i dont want to go to the homepage at all.. but just to stop at that database visit to get that recordd
You can use any of PHP's URL handling functions to do this. Take a look at file_get_contents() or cURL.
Is there even any output on the page you want? Usually when I make a redirect-page, it just redirects and shows no output. Unless of course it's a javascrip/meta-redirect.