Thanks to everyone for their help, I managed to figure this out with some of the tips given above.
The data in which I accessed the information needed a code code, obviously I was not sure how to find out, but I managed to get it, this is what I used, and not 100% sure that if it were right but Ive managed to get the data which turned out to be in JSON format.
If there are any clues to this solution, Im all ears ..
function name() { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://urlhere.com"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, false); $data = array( 'codekey' => 'mycodekey' ); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $rawdata = curl_exec($ch); curl_close($ch); //Convert Returned JSON data to PHP Object $output = (json_decode($rawdata)); foreach($output->DATA as $key => $val) { echo "<br />" . $val[1]; }
It was a little different than in my example above, since I decided to use a lighter channel that just had seasons because the JSON data returned in my channel above had a lot more data (GP, Wins, Losses, Ties, PTS, ) etc.
source share