javascript - PHP create temporary link to to JS file -


is there anyway can generate tempory file link js file can deleted when not required anymore.

so example, want avoid having <script src="assets/js/app.js"></script> instead having <script src="hsaiw45.js></script>

but point assets/js/app.js file. have loads of temporary files link same js file. create temp file based on user name when log in , destroy when log out.

instead of <script src="hsaiw45.js"></script> use <script src="myjs123.php"></script>

then in php script logic need , redirect js file want.

even more, can <script src="myjs.php?id=123xyz></script> according id key decide js file load.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -