Any way i can use fsockopen to detect url redirections? for example if ds: www.ex1.com redirects to www.ex2.com and i'm using: $fp = fsockopen(www.ex1.com, 80) .... to connect to the site, anyway i can know if there is a redirection to another url?
Any way i can use fsockopen to detect url redirections? for example if ds: www.ex1.com redirects to www.ex2.com and i'm using: $fp = fsockopen(www.ex1.com, 80) .... to connect to the site, anyway i can know if there is a redirection to another url?