P
P
Pavel Mikhalovsky2018-02-06 03:40:25
JavaScript
Pavel Mikhalovsky, 2018-02-06 03:40:25

Is it possible for javascript or its frameworks to be considered the directories of the site where the script is running?

I am making a site with work modules, I wanted to make the site extensible and allow other developers to extend the site. In order not to force them to once again climb into already written scripts, I would like to simplify the ability for them to add modules. So far, I have an idea to allow developers to write their modules in folders and then read the folders on the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil Razumkov, 2018-02-06
@razumkov2015

Only the server language can work with directories on the server. PHP will help you, you can use it to read the contents of scripts, encode it, give it to the client and decode and run it there.
JS is a purely client-side language that has no idea at all what is happening on the server, much less access. Unless of course we are talking about Node.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question