Server : Apache/2.4.58 (Ubuntu) System : Linux yumsem00.cafe24.com 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64 User : root ( 0) PHP Version : 8.2.14 Disable Function : NONE Directory : /var/www/html/ |
Upload File : |
<?php $url = "https://yumsem.dbmg.kr/api/requestPMDBphp"; $data = []; $data['apiKey'] = "6CCZ8G98LVWFU8P82G0F"; $data['csName'] = "홍길동"; $data['csTel'] = "020-0000-0001"; $etc = []; $etc['창업문의'] = ""; $etc['창업희망지역'] = ""; $etc['이메일'] = ""; $etc['문의사항'] = ""; $etc['점수'] = ""; $data['etc'] = json_encode($etc); $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_URL, $url); $response = curl_exec($ch); curl_close($ch); // 응답이 확인용 출력으로 필요없으면 생략해도 됨 echo "<pre>"; print_r($response); echo "</pre>"; ?>