|
 |
|
ส่ง ค่าจากฟอร์ม เพื่อบันทึกลงฐานข้อมูล ช้ามากครับ แต่ในฐานมีข้อมูลเข้าแล้ว แต่ แจ้งว่า 504 Gateway Time-out openresty รบกวนผู้หน่อยครับแก้ยังไงดี |
|
 |
|
|
 |
 |
|
ไฟล์ save.php
Code (PHP)
<?php
$no = $_GET['no'];
$aprove = $_POST['aprove'];
$budjet = $_POST['budjet'];
$deegagf = $_POST['deegagf'];
$amountgf = $_POST['amountgf'];
$capitalno = $_POST['capitalno'];
$aprove = $_POST['aprove'];
$sendblack = $_POST['sendblack'];
$url = 'https://script.google.com/macros/s/15kkk/exec?action=edit&sheet_name=control';
$data = array('no' => $no, 'budjet' => $budjet , 'deegagf' => $deegagf , 'amountgf' => $amountgf ,'capitalno' => $capitalno ,'aprove' => $aprove , 'sendblack' => $sendblack);
$datas = json_encode($data );
$options = array(
'http' => array(
'header' => "Content-type: application/json",
'method' => 'POST',
'content' => ($datas)
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) { }
else{ ?>
<script langquage='javascript'> window.location="tokensuper.php?data=<?php echo $aprove?>"; </script>
<?php }
?>
ต้องแก้ตรงไหนครับ
Tag : PHP, Web Services

|
ประวัติการแก้ไข 2021-01-24 14:41:02
|
 |
 |
 |
 |
Date :
2021-01-24 14:40:00 |
By :
andersonpokhao |
View :
679 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
|
|

|
Load balance : Server 00
|