I’m new to PHP, so this is a very simple question. Let’s say I have two folders: FolderA and FolderB. Within FolderA, I have a PHP file. Within FolderB, I have a certificate. If I wanted to insert the relative path to the certificate in the PHP file, would this be this path: ../FolderB/Certificate.pem?
Thanks for your help!
Your solution entirely depends on whether or not the file in
FolderAis at the top of the “include tree”.A better solution would be to use an absolute path, eg
To illustrate why an absolute path is better, consider this