How can I edit a javascript file using php. I want to change the file path dynamiacally is it possible to do with php. Please help me?
test.js is my file. this is for display images on frontend
from admin panel me create one folder named flower. then I will create one flower named folder
and copy this test.js to that folder. after that I have to edit the file path of test.js file. how can I do that?
Your PHP file will get executed on the server and an HTML file (usually) will be sent to the client. This file will contain a
<script type="text/javascript">...line somewhere if you’re including a javascript file. You can rewrite this line in your PHP file to make it pick up the file from somewhere else.