#18696 [Opn]: Only the first include of php file from shtml works
| From: | aaron@php.net | Date: | Sat, 17 Aug 2002 16:42:24 +0000 |
| Subject: | #18696 [Opn]: Only the first include of php file from shtml works | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17136@lists.php.net to get a copy of this message | ||
ID: 18696
Updated by: aaron@php.net
Reported By: newsp@jippii.fi
Status: Open
Bug Type: Apache2 related
Operating System: Solaris 8
PHP Version: 4.2.2
New Comment:
This looks like a duplicate of bug 17868. Take a look over
there and see if they match what you are seeing.
Previous Comments:
------------------------------------------------------------------------
[2002-08-02 02:37:19] newsp@jippii.fi
I have this wierd problem: Only the first include of php file from
shtml works ok, following ones are not parsed at all. Is this a bug of
apache2 support or something I have misconfigured?
For example if I have following files:
-- test.shtml --
<!--#include virtual="test.php"-->
<!--#include virtual="test.php"-->
-- test.shtml --
and
-- test.php --
<? print "a"; ?>
-- test.php --
the output of test.shtml is:
a<? print "a"; ?>
I have tried following configurations:
--
AddOutputFilter INCLUDES shtml
AddType application/x-httpd-php .php
--
and
--
AddOutputFilter INCLUDES;PHP shtml
--
and
--
AddType application/x-httpd-php .php
AddHandler server-parsed .shtml
--
And the result is always the same.
Is this a bug or feature?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18696&edit=1