Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-11 Thread Samuel Ventura
Hi there again people, I looks like this thread turned into a 'include' usage discussion. Well, nothing wrong with that. The conclusion seems to be that ALL level of nested included inherit current directory reference for relative paths from the very first script ( that in $_SERVER[SCRIPT_NAME]

[PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Samuel Ventura
Hi there, I have 3 files in nested subdirectories (1) /test.php (2) /subdir1/test.php (3) /subdir1/subdir2/test.php (1) contains // (2) and (3) contains / if I call (3) it loops forever in (2) trying to including itself. I expected (2) correctly incl

[PHP] HELP: Detecting the name of the file a function is being called from

2004-02-09 Thread Samuel Ventura
Hi there I have 2 scripts: /// / I get the output test1.php what I need is to detect the name of the script from which I called the function, (test2.php) in this case. For this application, it is