Hello, I’m currently working on a website and something I’m setting up requires the full path for a file. Entering /dev.bildix.cf/htdocs/[filename] (which is where the file is) doesn’t work and gives a 500 internal service error. Is there any way to get the actual file path?
Wait, why do you need to full path? Also, PHP will return the path from the location of where PHP is installed, and it is not installed in the root, so it will not return the full path anyway.
You also do not have root access on the server, so a full path is not allowed to be used here.
The 500 error is because that path does not exists. A file with the URL of “https://mydomain.com/folder/file.php” has a full path of “/folder/file.php”, you should NEVER include the root directory (htdocs) to get a files path here (Or really anywhere), it will never work.