vrana           Sun Sep 19 06:08:19 2004 EDT

  Modified files:              
    /phpdoc/en/faq      installation.xml 
  Log:
  Content negotiation (bug #28023)
  # Please check my grammar
  
http://cvs.php.net/diff.php/phpdoc/en/faq/installation.xml?r1=1.39&r2=1.40&ty=u
Index: phpdoc/en/faq/installation.xml
diff -u phpdoc/en/faq/installation.xml:1.39 phpdoc/en/faq/installation.xml:1.40
--- phpdoc/en/faq/installation.xml:1.39 Sun Sep  5 04:07:00 2004
+++ phpdoc/en/faq/installation.xml      Sun Sep 19 06:08:19 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.39 $ -->
+<!-- $Revision: 1.40 $ -->
  <chapter id="faq.installation">
   <title>Installation</title>
   <titleabbrev>Installation</titleabbrev>
@@ -693,6 +693,39 @@
      </para>      
     </answer>
    </qandaentry>
+
+   <qandaentry id="faq.installation.apache.multiviews">
+    <question>
+     <para>
+      Is it possible to use Apache content negotiation (MultiViews option)
+      with PHP?
+     </para>
+    </question>
+    <answer>
+     <para>
+      If links to PHP files include extension, everything works perfect. This
+      FAQ is only for the case when links to PHP files don't include extension
+      and you want to use content negotiation to choose PHP files from URL
+      with no extension.
+      In this case, replace the line <literal>AddType application/x-httpd-php
+      .php</literal> with:
+      <programlisting role="apache-conf">
+<![CDATA[
+# PHP 4
+AddHandler php-script php
+AddType text/html php
+
+# PHP 5
+AddHandler php5-script php
+AddType text/html php
+]]>
+     </programlisting>
+     This solution doesn't work for Apache 1 as PHP module doesn't catch
+     <literal>php-script</literal>.
+     </para>
+    </answer>
+   </qandaentry>
+
   </qandaset>
  </chapter>
 

Reply via email to