$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://apistg.myapipage.com/pay/start");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array(
"CurrencyCode" => "949",
"OrderId" => "123345",
"BaseAmount" => "5",
"SuccessUrl" => "http://www.google.com.tr",
"FailUrl" => "https://www.yahoo.com/",
"PaymentMethodCode" => "CC",
"ProductList" => array()
)));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'AppSecret:212121-D802-4E3A-A593-BB95202547AA',
'AppId:212121-CE2D-483B-B83D-9EC8919944DB',
'Content-Type:application/json'
));
(AT)curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$content = curl_exec($ch);
curl_close($ch);
(AT) yerine @ işareti koyman gerekmektedir



gokturkeyas adlı üyeden alıntı: mesajı görüntüle
http://simplehtmldom.sourceforge.net/ framework kullanmadığın düz php bir projede bu kütüphane daha rahattır.
attığınız şeyin maalesef konu ile alakası yok