<?php
$url = "http://www.something.com";
$curl = curl_init();
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt ($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$curlresult = curl_exec ($curl);
curl_close($curl);
preg_match_all("/ something=something/", $curlresult, $theurls);
$string = serialize($theurls);
$curl = curl_init();
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER2['HTTP_USER_AGENT']);
curl_setopt ($curl, CURLOPT_URL, $string);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$curlresult2 = curl_exec ($curl);
curl_close ($curl);
print $curlresult2;
?>
so im realy new to php and its probably a silly mistake .-.
this is the answer i got from wamp syntax error, unexpected '$curl' (T_VARIABLE)
anyway , can some one help me?