I am going crazy with this one
I have this folders and files structure
- /
- /projects
- /mytest
- /install
- /index.php
- /product
- /install
- /mytest
- /resources
- /projects
So, inside my install/index.php file I am trying to verify if /product folder does exist. I know that the folder exists, but looks like PHP doesn't. My code:
if(file_exists('../../mytest/product') && is_dir('../../mytest/product')) {
echo 'Folder exists!';
} else {
echo 'PHP is blind or something!';
}
Maybe I am very tired, but I just cannot figure out what is wrong. Some rested minds here maybe will see the problem. Thanks!
realpath('../../mytest/product');