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
Post a Comment