fix examples role=apache

some CS


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@150315 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2004-02-02 15:53:23 +00:00
parent eaa049e87b
commit afd05d47dc
2 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.35 $ -->
<!-- $Revision: 1.36 $ -->
<appendix id="migration4">
<title>Migrating from PHP 3 to PHP 4</title>
@ -63,20 +63,20 @@ $ ./configure \
changes. The MIME types recognized by the PHP module have
changed.
<informalexample>
<programlisting role="apache">
<programlisting role="apache-conf">
<![CDATA[
application/x-httpd-php3 --> application/x-httpd-php
application/x-httpd-php3-source --> application/x-httpd-php-source
]]>
</programlisting>
</informalexample>
</programlisting>
</informalexample>
</para>
<para>
You can make your configuration files work with both versions
of PHP (depending on which one is currently compiled into the
server), using the following syntax:
<informalexample>
<programlisting>
<programlisting role="apache-conf">
<![CDATA[
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
@ -85,7 +85,7 @@ AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
]]>
</programlisting>
</informalexample>
</informalexample>
</para>
<simpara>
In addition, the PHP directive names for Apache have changed.
@ -94,15 +94,15 @@ AddType application/x-httpd-php-source .phps
Starting with PHP 4.0, there are only four Apache directives
that relate to PHP:
<informalexample>
<programlisting role="apache">
<programlisting role="apache-conf">
<![CDATA[
php_value [PHP directive name] [value]
php_flag [PHP directive name] [On|Off]
php_admin_value [PHP directive name] [value]
php_admin_flag [PHP directive name] [On|Off]
]]>
</programlisting>
</informalexample>
</programlisting>
</informalexample>
</para>
<simpara>
There are two differences between the Admin values and the non admin values:

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<appendix id="migration5">
<title>Migrating from PHP 4 to PHP 5</title>
@ -82,7 +82,7 @@
Migrate the Apache configuration is extremely easy. See the example below
to check the change you need to do:
<informalexample>
<programlisting role="apache">
<programlisting role="apache-conf">
<![CDATA[
# change this line:
LoadModule php4_module /php/sapi/php4apache2.dll
@ -98,7 +98,7 @@ LoadModule php5_module /php/php5apache2.dll
CGI version has changed its name from php.exe to php-cgi.exe.
In Apache you should do something like this:
<informalexample>
<programlisting role="apache">
<programlisting role="apache-conf">
<![CDATA[
# change this line:
Action application/x-httpd-php "/php/php.exe"