Advertisement
Guest User

Xojo Code

a guest
Jul 11th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Php code:
  2.  
  3.     $jsonresult = curl_exec($ch); //execute post
  4.     //echo $jsonresult; //displays post (test purposes)
  5.     $phpresult = json_decode($jsonresult, true); //turns JSON array back into PHP?
  6.  
  7.     for($i=0;$i<count($phpresult);$i++) //for loops through php array
  8.     {
  9.         echo $phpresult['channels'][$i]['name'], "\n"; //searches through channels array and echos every instance of 'name'
  10.     }
  11.  
  12. Xojo code:
  13.  
  14. //Executes the PHP file
  15. Dim response As Chilkat.HttpResponse
  16. response = http.PostUrlEncoded("http://localhost:80/refreshChannels.php", req)
  17.  
  18. statusLogTArea.text="Channels found are: " + el + response.BodyStr.ToText+chr(13)+statusLogTArea.text.ToText
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement