$pageLineContent) { if (stristr($pageLineContent,"mail.html")) { $emailWebsite = substr(trim($pageLineContent),15,63); echo $emailWebsite; break; } } function requestWebsite($requestUrl,$cookieFile) { /** * Debug Mode/Proxy Mode - It does not work. * * error_reporting(E_ALL); * $proxyList = 'http://proxy-list.org/downloadproxylist.php?sp=-1&pp=any&pt=ae&pc=any&ps=any'; * curl_setopt($cUrl, CURLOPT_HTTPPROXYTUNNEL, 1); * curl_setopt($cUrl, CURLOPT_PROXY, 'http://210.3.25.166:8080'); * curl_setopt($cUrl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); **/ $cUrl = curl_init(); /* Setup cUrl Options */ curl_setopt($cUrl, CURLOPT_COOKIE, $cookieFile); curl_setopt($cUrl, CURLOPT_COOKIEJAR, $cookieFile); curl_setopt($cUrl, CURLOPT_URL, $requestUrl); curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($cUrl, CURLOPT_HEADER, 1); curl_setopt($cUrl, CURLOPT_TIMEOUT, 10); /* Load webpage */ $pageContent = trim(curl_exec($cUrl)); curl_close($cUrl); return $pageContent; } ?>