|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2086 include() does not find files in the include path
Submitted: 1999-08-17 09:34 UTC Modified: 2001-04-29 11:56 UTC
From: DevMail at flx dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 2 OS: NT
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: DevMail at flx dot com
New email:
PHP Version: OS:


 [1999-08-17 09:34 UTC] DevMail at flx dot com
1. make a file <% echo "test" %> in a directory in the include path
2. make a test.php file <% include("") %> in a *different* directory
3. browse test.php

It gives a nice message, telling you the include path:

Warning: failed opening '' for inclusion (include_path='c:\inetpub\wwwroot\include') in C:\inetpub\wwwroot\default.htm on line 2

It works fine if I have the .inc file in the same directory.

in my php.ini file I have

include_path     =      c:\inetpub\wwwroot\include


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-17 18:37 UTC] zeev at cvs dot php dot net
include_path and URL includes currently do not work under Win32.
It would take a while before they do.
 [2001-04-29 11:56 UTC]
this has been fixed.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 10:01:22 2020 UTC