Server IP : 103.6.199.200 / Your IP : 18.224.56.127 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/sharksav/donation.sharksavers.org.my/wwwroot/ |
Upload File : |
<?php $url = 'http://member.linkodes.com/api/mol_generate_order'; $fields = array( 'uacc_id' => urlencode($_POST['uacc_id']), 'amount' => urlencode($_POST['amount']), 'currency' => urlencode($_POST['currency']), 'payment_gateway' => urlencode($_POST['payment_gateway']) ); //url-ify the data for the POST foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string, '&'); //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); //execute post $result = curl_exec($ch); ?>