php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47595 'Include' outputs only included file.
Submitted: 2009-03-08 08:12 UTC Modified: 2009-03-08 08:58 UTC
From: stas87 at i dot ua Assigned:
Status: Closed Package: Output Control
PHP Version: 5.2.9 OS: Vista
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: stas87 at i dot ua
New email:
PHP Version: OS:

 

 [2009-03-08 08:12 UTC] stas87 at i dot ua
Description:
------------
When i try to include file it outputs only that file without the page on which it was included

Reproduce code:
---------------
contents of file index.php
<?php
include"./file.php";
?>

Expected result:
----------------
contents of file index.php
included contents of file ./file.php

Actual result:
--------------
included contents of file ./file.php



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-08 08:58 UTC] stas87 at i dot ua
Sorry! The problem is solved! Forgot about mod_rewrite...
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Feb 27 13:01:30 2020 UTC