I am just writing a little script on the back end of my site's server so i can have a private proxy. Since I am banned from stackoverflow

figured I would post here and see if anyone could help. Currently I have:
PHP Code:
$search = $_POST["sValue"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "wwwdot$search/");
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
curl_exec($ch);
curl_close($ch);
As expected though if you go to google and type something in the search bar it tries to run the search from your domain. IE instead of: wwwdotgoogledotcom/search?ie=ISO-8859-1&hl=en&source=hp&q=google&btnG=Google+Search&gbv= 2&gws_rd=ssl it does: wwwdotthepornwizdotcom/search?ie=ISO-8859-1&hl=en&source=hp&q=google&btnG=Google+Search&gbv= 2
So atm is pretty retarded as I am in essence just echoing the page out. Althought if everytime I follow a link it just keeps it like wwwdotthepornwiz.com/sub/proxy_search.php?k=thelink I should be able to load everything although without images.