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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC