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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 03:01:35 2025 UTC