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