All pastes #719206 Raw Edit

Anonymous

public php v1 · immutable
#719206 ·published 2007-09-29 01:19 UTC
rendered paste body
<?    $requestUrl = "http://10minutemail.com/10MinuteMail/index.html";    $cookieFile = getcwd() . "\cookies.txt";        $pageContent = requestWebsite($requestUrl,$cookieFile);    $pageContentArray = explode("\n",$pageContent);    foreach ($pageContentArray as $pageLine => $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;    }	?>