php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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 test.inc file <% echo "test" %> in a directory in the include path
2. make a test.php file <% include("test.inc") %> in a *different* directory
3. browse test.php

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

Warning: failed opening 'top.inc' 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] jmoore@php.net
this has been fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC