Hello everyone, I know this issue is minor, but I want to fix all the little bugs. In php, whene i type "/some/thing.XXX" It wont reach the file, only if ill add "." like this "./some/thing.XXX" The document root function point to the web folder as it sould, but the "/" not. and ideas?
If you include a file in php with require() or include(), the website docroot is not relevant for php. So if you include a file from a local path, the path is either ./some/thing.XXX or some/thing.XXX. Paths thats tart with / have to be full paths, e.g. /var/www/www.yourdomain.com/web/some/thing.XXX
What's the DocumentRoot setting from your virtual host? I doubt that it is "/". Please try what Till suggested and leave out the "/" in the beginning of your PHP paths.
hi ther, recently I moved my website to a newer server, so i get alot of not working code, sinse all the codes user / infront of the pathes, so i would like to know how to make the / as the document root please. thank you