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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 38 = ?
Subscribe to this entry?

 
 [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: Wed Apr 01 12:01:22 2020 UTC