Posted by micha on 05/12/05 14:53
suppose i have 3 files:
script.php
somedir/include.php
somedir/config.php
1. script.php includes include.php
2. include.php includes config.php, so the structure looks like a cascade
now if i include config.php (without path) from include.php the script
tries to include from the directory script.php is in, which makes sense but
is not what i want.
question: how can i find out which dir include.php has been included from?
micha
Navigation:
[Reply to this message]
|