-

 - e-mail

 

 -

php seo nikon

 -

 LiveInternet.ru:
: 14.02.2009
:
:
: 23

:


, 14 2009 . 00:44 +

- SEO ( ).

“” !

- ?! . , .. . , - !

, , . ? , anti-captcha.com! …

 

anti-captcha.com. - $0.001-   - ($1 1000 )

( $key) .

http://myseoincome.ru/php/anticaptcha/

- . .

, :

 
 

:

    !

.  :

user -  
captcha -  
act=reg -  

POST. img.php

, , .

:

  1. (http://myseoincome.ru/php/anticaptcha/img.php)
  2. .

, . .

- geturl(). .

URL , $postdata POST $header. ,

<?php
function geturl($url,$postdata=0,$header=0)
{
	$poststr="";
	if ($postdata)
		while (list($name,$value)=each($postdata)){
	    	if (strlen($poststr)>0)
	    		$poststr.="&";
	    	$poststr.=$name."=".urlencode($value);
	        }

	//  
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);

	if ($header){
		curl_setopt($ch, CURLOPT_HEADER, 1);
		curl_setopt($ch, CURLOPT_NOBODY, 1);
	}else{
		curl_setopt($ch, CURLOPT_HEADER, 0);
	}

	if ($postdata){
		curl_setopt($ch, CURLOPT_POST, 1);
		curl_setopt($ch, CURLOPT_POSTFIELDS, $poststr);
	}

	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	$res = curl_exec($ch);
	curl_close($ch);
	return $res;
}

?>

.

$header = geturl('http://myseoincome.ru/php/anticaptcha/',0,1);

HTTP/1.1 200 OK
Date: Sat, 13 Dec 2008 09:16:20 GMT
Server: Apache/1.3.34 (Debian)
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/5.2.0-8+etch13
Set-Cookie: PHPSESSID=edd8be2ff7a1577cc048734b43607415; path=/
Connection: close
Content-Type: text/html

ID (edd8be2ff7a1577cc048734b43607415)

preg_match('|PHPSESSID=(.*);|U', $header, $out);
$session = $out[1];

, , anti-captcha.com

, , , .

$postdata = array(
	'PHPSESSID' => $session
);
$captcha = geturl('http://myseoincome.ru/php/anticaptcha/img.php',$postdata);

$postdata = array(
    'method'    => 'base64',
    'key'       => $key,
    'body'      => base64_encode($captcha),
    'ext' 	=> 'png'
);
$rev = geturl("http://anti-captcha.com/in.php",$postdata);

if (substr($rev,0,2)=='OK'){
	// id   
	$anti_captcha_id = substr($rev,3);
}else{
	echo "Upload ERROR";
	exit;
}
// 15    
sleep(15);

$postdata = array(
    'key'       => $key,
    'action'    => 'get',
    'id' 	=> $anti_captcha_id
);

$cap = geturl("http://anti-captcha.com/res.php",$postdata);

if (substr($cap,0,2)=='OK'){
	$captcha_value = substr($cap,3);
}else{
	echo "ERROR";
	exit;
}

. ID . ID , . , , 15 ! 5 . , , .

, , .  !

$postdata = array(
	"user" => "SEO-",
	"captcha" => $captcha_value,
	"act" => "reg",
	"PHPSESSID" => $session

);
$recdata = geturl('http://myseoincome.ru/php/anticaptcha/',$postdata);
echo $recdata;

:

SEO-

, . .

. . !

:  

Queen_de_la_reanimaR   , 14 2009 . 09:31 ()
~__^ ^__^/
   
_   , 14 2009 . 15:53 ()
- - php... ?
   
   .. , 14 2009 . 16:22 ()
, php
   
: [1] []
 

:
: 

: ( )

:

  URL