Below is the structure of the folders:
/home/web/site/public_html
If I give echo $_SERVER['DOCUMENT_ROOT']
/home/web/site
but I'd like to not have to use ../../../
to go back up to /site
and having to guess how many folders I have to get back to the destination, is there any easier way to point to a folder before the default?
And if I want to call the files to a img
or video
tag through src="algo..."
would it be a more practical solution to serve such files through a php script and limit the permissions of it? If so, how can I create it?