cvs: phpdoc /en/reference/apache/functions virtual.xml
| From: | Andrew Lindeman | Date: | Sat, 03 May 2003 21:03:50 +0000 |
| Subject: | cvs: phpdoc /en/reference/apache/functions virtual.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969353118@lists.php.net to get a copy of this message | ||
alindeman Sat May 3 17:03:50 2003 EDT
Modified files:
/phpdoc/en/reference/apache/functions virtual.xml
Log:
you _can_ use virtual on PHP files, but discourage the use
Index: phpdoc/en/reference/apache/functions/virtual.xml
diff -u phpdoc/en/reference/apache/functions/virtual.xml:1.3
phpdoc/en/reference/apache/functions/virtual.xml:1.4
--- phpdoc/en/reference/apache/functions/virtual.xml:1.3 Mon May 20 14:56:47 2002
+++ phpdoc/en/reference/apache/functions/virtual.xml Sat May 3 17:03:50 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/apache.xml, last change in rev 1.20 -->
<refentry id="function.virtual">
<refnamediv>
@@ -19,14 +19,16 @@
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. For PHP files, you need to
- use <function>include</function> or <function>require</function>;
- <function>virtual</function> cannot be used to include a document
- which is itself a PHP file.
+ must generate a Content-type header.
</para>
<para>
To run the sub-request, all buffers are terminated and flushed to the
browser, pending headers are sent too.
+ </para>
+ <para>
+ As of PHP 4.0.6, you can use <function>virtual</function> on PHP files.
+ However, it is typically better to use <function>include</function> or
+ <function>require</function> if you need to include another PHP file.
</para>
</refsect1>
</refentry>