k my server runs cpanel, and here's the scenario:
I have a website that has alot of files in it's folder, like public_html/site/folder_of_files/
now, that site uses the files on the site. I want to create a new website similar to it with the same code, and want it to be able to use the same files, but I do not want to have to recreate all the files inide the path for the site (like public_html/newsite/folder_of_files/) because there is not enough HD space. Additionally I do not want to have to recode the site to know to use it from the other sites folder.
so I wanted to know if it was possible to create something similar to a windows shortcut for all the files? So I can let the server knows when th escript tries to access a file from public_html/newsite/folder_of_files/ to read that file name from public_html/site/folder_of_files ?
You can try creating a symlink.
ie, inside public_html/newsite/ you can create a link to public_html/site/folder_of_files/. So you will be able to use same code itself because all files will be in the same location.
You can create a symlink using ln -s command.
Inside the public_html of the new site
ln -s /path to the old site files/ . This will create the directory with the same name.
How ever if you have restrictions like safe_mode or open_base_dir this will throw errors.