Is this possible? php creating a .js file and then including it in the same page
Basically the question is when does an included .js script file get read? Is it after the server is done processing php? Is it requested by the browser or the server?
So I thought I could have php access the database, make a something.js file with all the array declarations, and then include that file instead. Would that obfuscate the values? Would it even work?