php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #866 No need for Content-type header with virtual
Submitted: 1998-10-22 08:38 UTC Modified: 1998-10-29 11:49 UTC
From: alex at finance-net dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.5 OS: Solaris 2.6
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:
27 + 2 = ?
Subscribe to this entry?

 
 [1998-10-22 08:38 UTC] alex at finance-net dot com
From documentation :

>virtual
>virtual -- Perform an Apache sub-request
>Description
>
>int virtual(string filename);
>
>virtual() is an Apache-specific function which is
>equivalent to <!--#include virtual...--> in mod_include.
>It performs an Apache sub-request. It is useful for
>including CGI scripts or .shtml files, or anything else
>that you would parse through Apache. Note that for a CGI
>script, the script must generate valid CGI headers. At the
>minimum that means it must generate a Content-type header.


But if an header is include, then it's displayed in html. virtual() work without header at all.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-29 11:49 UTC] rasmus
It is good practise to have a sub-requested entity return proper headers since one or more of these headers may actually affect how Apache treats the request.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 11:01:34 2024 UTC