Is it possible for PHP to follow a URL? -


Is it possible to take a URL, wait for the redirects to go through, and then the URL of the page Get on?

  $ cr = curl_init ("http://example.com"); Curl_setopt ($ cr, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ cr, CURLOPT_FOLLOWLOCATION, 1); Curl_exec ($ Crores); $ Info = curl_getinfo ($ cr); Echo "url =". $ Info ["url"];  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -