<?php class madafaka { var $delay; // Czas miedzy wejściami w sekundach var $timeout; // timeout dla curla var $cookie_file; // nazwa pliku cookie var $type_url; // Nie zmieniac !! // Jest puste i będzie puste private function curl_get( $url ) { $conn = curl_init(); curl_setopt( $conn, CURLOPT_URL, $url ); curl_setopt( $conn, CURLOPT_TIMEOUT, $this->timeout ); if( $this->proxy ) { curl_setopt( $conn, CURLOPT_PROXY, $this->proxy ); } curl_setopt( $conn, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; U; pl; rv:1.8.1) Gecko/20061208 Firefox/3.5.4' ); curl_setopt( $conn, CURLOPT_COOKIEJAR, $this->cookie_file ); curl_setopt( $conn, CURLOPT_COOKIEFILE, $this->cookie_file ); curl_setopt( $conn, CURLOPT_ENCODING, 'gzip, deflate' ); curl_setopt( $conn, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $conn, CURLOPT_REFERER, 'http://www.google.pl/' ); $data = curl_exec( $conn ); curl_close( $conn ); return $data; } function assassin() { for( $x = 0; $x < 1; $x++ ) { /*------------------- :] -------------------*/ $data = $this->curl_get( 'http://www.google.pl' ); /*------------------- :] -------------------*/ if( $this->delay != 0 ) { } } } } $assassin = new madafaka(); $assassin->delay = 2; // Czas miedzy wejściami w sekundach $assassin->timeout = 5; // timeout dla curla $assassin->cookie_file = 'assassin.txt'; // nazwa pliku cookie $assassin->assassin(); // :] ?>
I wczoraj działał

Powiedzcie mi tylko, czy wam działa ten kod.