Symlink to share code not working
Hi,
I am starting a project, that will consist of same custon code and some general code. The general code will be used for different instances of the project.
A short example:
I have webshop code, in the folder user/www/shop
I have custom code in the user/www folder
I don't want to have many copies of the shop folder, I basicly want the folder shop to point to one instance of the code.
A php script with includes, located in the general shop folder /mycode/shop/ can not include the files in its root folder because root is not /home/user1/www/ but /mycode .
My question is: how can I use the same code in different user directories without having to have multiple copies.
I hope the question is clear.
|