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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 06:01:33 2024 UTC