After awhile of not using JSON, I'm a little rusty on the possibility of requestiing the data from another domain/web-server.
<?php header('Access-Control-Allow-Origin: *');
if(!empty($_GET['file'])){
?>
jsonFile = 'data/<?php echo $_GET['file']; ?>';
<?php
}
?>
Is there a way to do this without using JSONP? I think the way I have my code setup, it queries from a data/ folder. That data folder is also available on the other web server. Any thoughts? All appreciated.