[PHP-DEV] Bug #866 Updated: No need for Content-type header with virtual From: Bug Database (php-dev <email protected>)
Date: 10/22/98

ID: 866
User Update by: alex <email protected>
Status: Open
Bug Type: Documentation problem
Description: No need for Content-type header with virtual

>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.

Full Bug description available at: http://ca.php.net/bugs.php3?id=866

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>