#17445 [Opn->Fbk]: open_basedir warning when including file in same dir
| From: | iliaa@php.net | Date: | Wed, 09 Oct 2002 03:51:07 +0000 |
| Subject: | #17445 [Opn->Fbk]: open_basedir warning when including file in same dir | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21893@lists.php.net to get a copy of this message | ||
ID: 17445
Updated by: iliaa@php.net
Reported By: mitch@webcob.com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: FreeB SD 4.4
PHP Version: 4.2.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-05-27 01:16:34] mitch@webcob.com
I have set open_basedir =
/home/user
I have set include_path =
.:/home/user/lib:/home/user/site/lib
I have a file located in:
/home/user/site/htdocs/
which requires another file in the same directory.
<?php require_once('file2.php'); ?>
The include WORKS.
BUT IT PRODUCED A WARNING:
Warning: open_basedir restriction in effect. File is in wrong directory
in /home/user/site/htdocs/file1.php on line 3 File2 is here.
The "File2 is here" is produced by the included file.
I've seen others comment on this problem, but could find no solution or
open occurance of it in the bug list.
Thanks.
Mitch.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17445&edit=1