php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21699 include() fails
Submitted: 2003-01-16 18:29 UTC Modified: 2003-01-16 19:47 UTC
From: phpbugreport at snowprods dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.0 OS: XP Pro, SP1
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: phpbugreport at snowprods dot com
New email:
PHP Version: OS:

 

 [2003-01-16 18:29 UTC] phpbugreport at snowprods dot com
XP PRO, SP1
Apache 2.0.43
mySQL 3.23.54
PHP 4.3.0
-------------
When attempting to use include() as in the following:

include $DOCUMENT_ROOT."/php_includes/pagetimer_start.php";

or

include ($DOCUMENT_ROOT."/php_includes/pagetimer_start.php");

I get the following errors:
-------------
Warning: main(/php_includes/pagetimer_start.php) [function.main]: failed to create stream: No such file or directory in Z:\htdocs\contact.php on line 3

Warning: main() [function.main]: Failed opening '/php_includes/pagetimer_start.php' for inclusion (include_path='.;c:\php4\pear') in Z:\htdocs\contact.php on line 3
-------------

This works on my live site, not sure of the config, without errors.

I have searched every corner of my dusty little web and can find nothing to indicate that this shouldn't work.  Is this truly a bug or am I just missing something?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-16 18:31 UTC] edink@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
 [2003-01-16 19:47 UTC] phpbugreport at snowprods dot com
doh!

Thanks for the quick response.  Could have sworn that I had this turned on.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 06:01:32 2025 UTC