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
Post a Comment