Although this has been asked a thousand times I still managed to screw things up and not find an answer that serves my issue..
I have 2 files
C:\xampp\htdocs\MF\Pages\ads.php
C:\xampp\htdocs\MF\Pages\ads_view.php
I wanna include ads_view from ads what I do is
echo __DIR__;
var_dump(file_exists('ads_view.php'));
and what I get is
C:\xampp\htdocs\MF\Pages
bool(false)
Why can't I include this file when __DIR__ clearly states i'm in the parent folder? ads.php is also included from another file, if that makes any difference?