[JavaScript] How can I load static configuration information
- by Goro
In my code, I use JavaScript for UI and PHP for back end. I also use PHP to store application settings and sometimes my UI code needs to access this information. My configuration file looks something like this (config.php):
$resolution_x = 1920;
$resolution_y = 1080;
etc...
When I need to access any of these settings form JavaScript, i simply…