Skip to content

[ How to: ] Use framework when PHP isn't available online

Glenn Ko edited this page Oct 11, 2013 · 1 revision

If your targeted online server environment cannot run PHP, or you wish to optimize the JSON output of the site XML by loading it from a cache (or saved file), you can simply run the scripts/site.php file on your localhost first, save the JSON output in a seperate file location (eg. json/site.json) and upload it.

In your head tag, just declare the global variable to where the json file is located.

<script type="text/javascript">
         gaiaSiteJson = "json/site.json"
</script>