For example, http://www.foo.com/transfer.php should redirect the user to http://www.bar.com/index.php. The following code fetches bar.com/index.php, but still displays foo.com/transfer.php in the address bar.
I want to completely transfer control to the new site. Any suggestions? Here's the code that I'm using.
Code: Select all
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://www.google.com");
curl_exec ($ch);
curl_close ($ch);