Doc #866 [Com]: No need for Content-type header with virtual
| From: | lildurk866 at gmail dot com | Date: | Wed, 01 Sep 2021 17:54:10 +0000 |
| Subject: | Doc #866 [Com]: No need for Content-type header with virtual | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-19140@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=866&edit=1
ID: 866
Comment by: lildurk866 at gmail dot com
Reported by: alex at finance-net dot com
Summary: No need for Content-type header with virtual
Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Solaris 2.6
PHP Version: 3.0.5
Block user comment: N
Private report: N
New Comment:
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
Previous Comments:
------------------------------------------------------------------------
[1998-10-29 11:49:37] 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.
------------------------------------------------------------------------
[1998-10-22 08:38:18] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=866&edit=1