Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $url = 'http://www.wepay.in.th/อะไรก็ว่าไป';
- $myvars = sprintf('username=%s&password=%s&type=balance_inquiry', urlencode("ยูสเซอร์เนม"), urlencode('พาสเวิร์ด'));
- $ch = curl_init( $url );
- curl_setopt( $ch, CURLOPT_POST, 1);
- curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars);
- curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt( $ch, CURLOPT_HEADER, 0);
- curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
- $response = explode('|', curl_exec( $ch ));
- echo "สถานะ=> {$response[0]}, ", ($response[0]=="SUCCESS"?"จำนวนเงินคงเหลือ {$response[1]} บาท":"ไม่สามารถใช้ได้ เพราะ {$response[1]}");?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement