Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2. $url="http://47.104.203.171:3001/choujiang/?numb=23123";
  3. // Initiate curl
  4. $ch = curl_init();
  5. // Will return the response, if false it print the response
  6. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  7. // Set the url
  8. curl_setopt($ch, CURLOPT_URL,$url);
  9. // Execute
  10. $result=curl_exec($ch);
  11. // Closing
  12. curl_close($ch);
  13.  
  14. $value = json_decode($result, true);
  15. echo $value["p_amount"];
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement