
15-02-2012, 09:29:14
|
| |
Hocam bende 2 gündür uğraşıyordum bunla sonunda kendim çözdüm.. Sana gönderilen PHP klasörü içindeki HTTPOST klasöründe OrtakOdeme_iPosClient.php var. Sen bu kodu kendi sitene uyarlamalısın. Bu kodda : PHP- Kodu: $context = stream_context_create($options);
$fp = fopen($registerUrl, 'r', true, $context);
$TrnxGUID = stream_get_contents($fp);
olarak yazılan kısmı PHP- Kodu: $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $registerUrl);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $registerParam);
$result = curl_exec($ch);
curl_close($ch);
$TrnxGUID = $result;
olarak değiştirirsen işlem sorunsuz hallolacaktır. |