php includes that include another php file
Posted
by Emma
on Stack Overflow
See other posts from Stack Overflow
or by Emma
Published on 2010-06-12T13:27:15Z
Indexed on
2010/06/12
13:32 UTC
Read the original article
Hit count: 668
I'm getting really muddled up now and my brain hurts! :( lol
Root:
- index.php
Includes:
- cat.php
- dog.php
index includes dog: include("includes/dog.php");
dog includes cat: include("cat.php");
When I run index, for cat it says:
- A link to the server could not be established
- Access denied for user ...
However, if I run dog, I get no problems...
I'm guessing its the path, but i've tried ./includes/cat.php to no joy...
© Stack Overflow or respective owner