I am using WAMP (Apache2) and I have a PHP command which goes like:
$file='/path/to/file.txt';
After some testing and diagnosis through the command realpath, I found out that the file is being grabbed from F:/path/to/file.txt
rather than F:/wamp/www/path/to/file.txt
. After searching through StackOverflow, people said to check the DocumentRoot inside of the httpd.conf. I did this and the DocumentRoot is /wamp/www
(like it should be).
Any ideas? I really don't want to redo this code if I don't have to.
Thanks!