error_log'da su hatayi veriyor:
PHP Warning: DOMDocument::loadXML() [<a href='function.loadXML'>function.loadXML</a>]: SYSTEM or PUBLIC, the URI is missing in Entity, line: 1
get_session.php ilk gönderdigim mail de bulunan kod. Bu hata yüzünden session_id üretilemiyor.
Diger programlardan su sekilde cagriliyor:
$require_xml = <<<HERE_DOC
<?xml version="1.0" encoding="utf-8"?>
<vendor version="1.2"
ipsvendorname="%s"
ipspassword="%s"
totalsum="%.2f"
orderID="%s"
customerID="%s"
customdata="%s"
confirmationurl="%s"
transactionerrurl="%s"
transactionaborturl="%s"
transactionokurl="%s"
seconds_to_live="%s">
</vendor>
HERE_DOC;
$request = sprintf( $require_xml,
"name",
"password",
$total,
'O_' . str_pad($_SESSION['tmp_oID'], 5, "0", STR_PAD_LEFT),
'C_' . str_pad($_SESSION['customer_id'], 5, "0", STR_PAD_LEFT) . '_at',
$custom_data,
"http://www.xxx.com/callback/ips/callback_ips.php <http://www.xxx.com/callback/ips/callback_ips.php> ?" . session_name() . "=" . session_id(),
"http://www.xxx.com/payment_refused.php <http://www.xxx.com/payment_refused.php> ?" . session_name() . "=" . session_id(),
"http://www.xxx.com/checkout_shipping.php <http://www.xxx.com/checkout_shipping.php> ?" . session_name() . "=" . session_id(),
"http://www.xxx.com/checkout_process.php <http://www.xxx.com/checkout_process.php> ?" . session_name() . "=" . session_id() . "&payment_state=ok",
54000
);
// request iPS-Session
$ch = curl_init();
curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml"));
curl_setopt ($ch, CURLOPT_URL, "https://ips.incentro.at/iPS/get_session.php <https://ips.incentro.at/iPS/get_session.php> ");
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $request);
$returnValue = curl_exec ($ch);
// ... if the request could not be sent
if (!$returnValue)
print "<cite>Fehler: ".curl_error($ch)." (".curl_errno($ch).")</cite>";
curl_close ($ch);
// ... transform txt to xml-dom-tree
$dom = DOMDocument::loadXML($returnValue);
_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Fri 27 Mar 2009 - 14:32:28 EET