ok, quick question about paths. I want to use the absolute for viewing and uploading images and I'm having some problems.
If I'm uploading images or using a function like file_exists and I want to use the absolute path, I have to start at the root of the server like this:
/home/me/images/uploaded
If I'm viewing images, however, the root location is the one set by apache. Therefore the same absolute path while using <img src=> would be:
/images/uploaded
The question is, if I want to use PHP functions like file_exists chdir() or whatever, how can I tell it to start at the same location as I'm assigned by Apache? Something like ~/images/uploaded but that doesn't work.
thanks for your help 😕