Wiedmann wrote:If I put it in an upper level and use Include("../abc.php"), then it will fail and show the error above
As I wrote in my last post:
The above error message is from a Include("abc.php") and not from a Include("../abc.php")
--> Thus you can't have the above error message with a Include("../abc.php").
OK, let me Clear it up again.......
I have Folder structure
Htdocs -> abc.php
Htdocs ->Project
Htdocs ->Project -> Display.php
Htdocs ->Project -> abc.php
where abc.php is a simple file contain <?php echo "Hello"; ?>
I am trying to run display.php
http://localhost/project/Display.phpThere is one include statement in display.php.
I tried to test it with Include("abc.php");, it works fine
I tried to test it with Include("../abc.php"), then it gives me the error above.
It is not a particular problem. I Have the same problem to ALLL scripts where I need to Include/Reference a file in upper directory level.