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
 [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 15:01:33 2024 UTC