using fsockopen to handle redirections

From: Date: Fri, 23 Dec 2005 10:04:16 +0000
Subject: using fsockopen to handle redirections
Groups: php.db 
Request: Send a blank email to php-db+get-40903@lists.php.net to get a copy of this message
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?

« previous php.db (#40903) next »