#9673 [Opn->Fbk]: Relative paths in require(), require_once(), include(), include_once()
| From: | iliaa@php.net | Date: | Thu, 01 Apr 2004 23:36:07 +0000 |
| Subject: | #9673 [Opn->Fbk]: Relative paths in require(), require_once(), include(), include_once() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57357@lists.php.net to get a copy of this message | ||
ID: 9673
Updated by: iliaa@php.net
Reported By: vvo at geocities dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: RedHat Linux
PHP Version: 4.3.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-04-01 18:32:42] vvo at geocities dot com
setting version to 4.3.2
------------------------------------------------------------------------
[2004-04-01 18:31:04] vvo at geocities dot com
Not clear to me why the issue status was changed to "Bogus". As far as
I can tell multiple people have same issue.
------------------------------------------------------------------------
[2004-03-24 15:14:47] chunan at zingy dot com
I am also having problems with the include() function. I also agree
that relative includes should always be relative to the current script.
------------------------------------------------------------------------
[2004-03-18 17:51:28] schapht at drexel dot edu
I am using version 4.3.2, and I have this problem. I
also agree that the php include behavior hurts
modularity. I can't reuse classes w/o modifying the
code to handle the new parent-script path.
Please tell me there's a fix for this.
------------------------------------------------------------------------
[2004-01-13 09:57:57] php at arantius dot cjb dot net
I'm sure I can get around this, but things really would be nice if this
worked. Situation is a very modular web site, with many files to be
included, some class definitions, and some other fuctions. Off of the
root /, there is /classes and /plugins . A file in /plugins is
included from a file in /, and depends on a file in /classes. In other
words:
/main.php includes /plugin/driver.php
/plugin/driver.php includes /classes/Item.php
But, within /plugin/driver.php, the statement
require_once "../classes/Item.php" fails.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/9673
--
Edit this bug report at http://bugs.php.net/?id=9673&edit=1