Здравствуйте, вот этот код как преобразуется в php 5.6? Заранее спасибо.
CODE ( htmlphp):
скопировать код в буфер обмена
<?php require_once("../pay/utils.php"); $self = $_SERVER['PHP_SELF']; $path1 = '../pay/config.txt'; $order_id = 1; $currency_id = "840"; $amount = 10; $content = process_request($order_id, $currency_id, $amount, $path1); ?> <?php require_once("../pay/utils.php"); $self = $_SERVER['PHP_SELF']; $path1 = '../pay/config.txt'; $result = 0; if(isset($_POST["response"])){$response = $_POST["response"];}; if ($result["ERROR_TYPE"]=="ERROR"){ echo "System error:".$result["ERROR"]; } elseif ($result["ERROR_TYPE"]=="system"){ echo "Bank system error > Code: '".$result["ERROR_CODE"]."' Text: '".$result["ERROR_CHARDATA"]."' Time: '".$result["ERROR_TIME"]."' Order_ID: '".$result["RESPONSE_ORDER_ID"]."'"; }elseif ($result["ERROR_TYPE"]=="auth"){ echo "Bank system user autentication error > Code: '".$result["ERROR_CODE"]."' Text: '".$result["ERROR_CHARDATA"]."' Time: '".$result["ERROR_TIME"]."' Order_ID: '".$result["RESPONSE_ORDER_ID"]."'"; }; }; echo "Result DATA: <BR>"; foreach ($result as $key => $value) {echo "Postlink Result: ".$key." = ".$value."<br>";}; }; } else { echo "System error".$result; }; ?>
Отредактировано модератором: Мелкий, 10 Марта, 2015 - 15:55:10
|