Installed apache and PHP on a new server. Using include("blah.php"); works fine but it doesn't work when I try to include from the directory behind, include("../blah.php");
PHP.ini has both:
allow_url_fopen = On
allow_url_include = On
Does anyone know what is causing this?
Best Answer
According to the documentation
When you
include ("blah.php");
PHP uses theinclude_path
, but if you use a relative specifier, like.
or..
, PHP builds a path relative to where it is, i.e. the currently executing script.