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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC