All of you good health, gentlemen. I want to ask for help from the knowledgeable. The other day in the project I came across such a thing:
// Putting things in the course I am writing a site generator and when I click on the button "Create a site" a lot of interesting things happen. this is to avoid copying the same files every time you create a site.
The situation in the rear is as follows. The directory structure is as follows:
htdocs | |-- repository | |-- admin | |-- core | |-- modules | |-- classes | |-- sites | |--site_1 | |--... | |--site_n | |--..
It is necessary to make links (symlinks) so that the contents of the htdocs / repository directory are accessible from htdocs / sites / site_i I googled, but so there is nothing intelligible about it and did not find symlinks. They write about the fact that in Windows there is no such luxury. I understood only that this is something like a shortcut in Windows. (I don’t know anything more about symlinks .. like about the unix system as a whole, maybe someone will throw a stone at me, but if I'm not a fan, then a big fan of MS) Guys, tell me how to be. What line and where to write? I am writing to php.