|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32975 Include ignores query string
Submitted: 2005-05-08 03:30 UTC Modified: 2005-05-08 04:35 UTC
From: gilthans at gmail dot com Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 4.3.11 OS: Windows XP IIS
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gilthans at gmail dot com
New email:
PHP Version: OS:


 [2005-05-08 03:30 UTC] gilthans at gmail dot com
The 'include' function ignores the query string, and seems to think it is part of the filename, thus, when I attempt to include a file with a query string included, it says the file does not exist. When the query string is removed, it works.

Reproduce code:
include('somepage.php'); //Works fine
include('somepage.php?banner=1'); //Doesn't work

Expected result:
Inclusion of the file, with the url recieving the query string normally.

Actual result:
It will output a "cannot find file or directory" warning.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-08 04:35 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 06:01:26 2024 UTC