I'm having an issue, the thing is that I was reading a json file with jquery, and it was working well, but now I have to make it read it in php, but the thing is that I was using some data to obtain the parts of the json with:
dataString = "id=" + id + "&todos=" + false;
$.ajax({
type: "POST",
url: "http://www.url.com/example",
data: dataString,
dataType: "json",
success: function( data, textStatus, jqXHR) {
And with this I had no problem, since I was sending the data to the site so it can give me the info that I wanted, but I have no clue of how to do it in php, i was trying with
$str = file_get_contents('http://www.url.com/example.json');
$json = json_decode($str, true);
var_dump($str);
But of course the site its returning me nothing since I'm not sending the data
I hope there's a way. Thanks!