php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33858 PHP executed in SSI doesn't show output
Submitted: 2005-07-26 01:27 UTC Modified: 2005-07-26 10:12 UTC
From: slimandslam at gmail dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.0.4 OS: FreeBSD 5.4 Stable
Private report: No CVE-ID: None
 [2005-07-26 01:27 UTC] slimandslam at gmail dot com
Description:
------------
When running PHP 5.04 as a CGI under Apache 2, PHP files included in Server-Side includes don't show their output. 
Note that the PHP files in SSI *are* executed, but the output is never shown. 

Running PHP 5.04 as an Apache module works as expected -- the output of the PHP files in a SSI is displayed. 

Reproduce code:
---------------
To reproduce, make sure you are running PHP 5.04 as a CGI. Setup your Apache 2 web server to work with Server-Side Includes using the file extension ".shtml".

The file we'll run is called "junk.shtml" :

<html>
<body>
<!--#include virtual="./junk.php" -->
</body>
</html>

In the same directory as junk.shtml, put the file "junk.php":

<?php
echo "FUN FUN FUN";
?>




Expected result:
----------------
FUN FUN FUN

Actual result:
--------------
[BLANK PAGE]

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-26 10:12 UTC] tony2001@php.net
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 http://www.php.net/support.php 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: Sat Jun 01 23:01:28 2024 UTC