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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex at finance-net dot com
New email:
PHP Version: OS:

 

 [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: Thu May 02 22:01:30 2024 UTC