I have a folder \folder\
above the webroot that contains .php
, .inc
, .dat
files
the
.php
can access the.inc
no problembut when the
.inc
tries to access the.dat
usingfopen('mydat.dat', "rb");
it gives an error that it can't findmydat.dat
inside\folder\myinc.inc
Of course it can't find it since .inc
is a file not a folder. Why is php treating it as such?
Any ideas why php is trying to find the .dat
inside the .inc
?
or any other alternatives to fopen($filename, "rb")
?