Merhabalar arkadaşlar küçük bir sorunum var

<?php
require_once 'function.php';

$id = "loggix1";
$pw = "asdasd";
$em = str_replace("@","%40","loggixl@hotmail.com");
$gs = 1;
$gc = "sanane";

$cp = getir(GetImageFromUrl("http://www.joygame.com/Handlers/Captcha.ashx"));
$nt = "checked";
$gi = 0;
$postfields = "username=$id&password=$pw&email=$em&secretQuestionId=$gs&secretAnswer=$gc&captcha=$cp&notifyMe=$nt&gameID=$gi";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 1); // Get the header
curl_setopt($ch, CURLOPT_URL, "http://www.joygame.com/Handlers/Ajax/user/Register.ashx");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt($ch, CURLOPT_COOKIE, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__)."/cookie.txt");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);  
curl_setopt($ch, CURLOPT_REFERER, "http://www.joygame.com/");
$cikti = curl_exec($ch);
curl_close($ch);
echo $cikti."   ".$cp;
?>
kodlar üstteki gibidir üyelik aldırmaya calısıyorum herşey tamam fakat bir türlü captchayı onaylatamadım captchayı çözüyoruz ama sayfada çözdüğümüzden farklı captcha cıkıyor cookie ile ilgili bir sorunmu acaba yardım lazım teşekkürler.