I'm trying to implement Tokenize2 on my page.
Part of the code to pull data from a JSON source involves this line:
$obj = json_decode(file_get_contents('search_list.json'), true);
I have a search_list.php
where I pull data from a mySQL database and generate the JSON content. But if I put search_list.php
into the file_get_contents()
it doesn't seem to work. Is there a way to get around this? Thanks.