Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url="http://47.104.203.171:3001/choujiang/?numb=23123";
- // Initiate curl
- $ch = curl_init();
- // Will return the response, if false it print the response
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- // Set the url
- curl_setopt($ch, CURLOPT_URL,$url);
- // Execute
- $result=curl_exec($ch);
- // Closing
- curl_close($ch);
- $value = json_decode($result, true);
- echo $value["p_amount"];
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement