mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
use of entity safemode;
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@115772 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c1d38c1b09
commit
f51da3b4d7
1 changed files with 30 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.28 $ -->
|
||||
<!-- $Revision: 1.29 $ -->
|
||||
<appendix id="migration4">
|
||||
<title>Migrating from PHP 3 to PHP 4</title>
|
||||
|
||||
|
@ -108,14 +108,32 @@ php_admin_flag [PHP directive name] [On|Off]
|
|||
There are two differences between the Admin values and the non admin values:
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem><simpara>Admin values (or flags) can only appear in the server-wide apache configuration files (e.g., httpd.conf).</simpara></listitem>
|
||||
<listitem><simpara>Standard values (or flags) cannot control certain PHP directives, for example - safe mode (if you could override safe mode settings in .htaccess files, it would defeat safe-mode's purpose). In contrast, Admin values can modify the value of any PHP directive.</simpara></listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Admin values (or flags) can only appear in the server-wide Apache configuration
|
||||
files (e.g., httpd.conf).
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Standard values (or flags) cannot control certain PHP directives, for example:
|
||||
&safemode; (if you could override safe mode settings in
|
||||
<filename>.htaccess</filename> files, it
|
||||
would defeat &safemode;'s purpose). In contrast, Admin values can modify
|
||||
the value of any PHP directive.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara>
|
||||
To make the transition process easier, PHP 4 is bundled with scripts that automatically convert your Apache configuration and .htaccess files to work with both PHP 3 and PHP 4. These scripts do NOT convert the mime type lines! You have to convert these yourself.
|
||||
To make the transition process easier, PHP 4 is bundled with scripts
|
||||
that automatically convert your Apache configuration and
|
||||
<filename>.htaccess</filename> files
|
||||
to work with both PHP 3 and PHP 4. These scripts do NOT convert the mime
|
||||
type lines! You have to convert these yourself.
|
||||
</simpara>
|
||||
<para>
|
||||
To convert your Apache configuration files, run the apconf-conv.sh script (available in the scripts/apache/ directory). For example:
|
||||
To convert your Apache configuration files, run the apconf-conv.sh
|
||||
script (available in the scripts/apache/ directory). For example:
|
||||
<informalexample>
|
||||
<programlisting role="shell">
|
||||
<![CDATA[
|
||||
|
@ -128,17 +146,20 @@ php_admin_flag [PHP directive name] [On|Off]
|
|||
Your original configuration file will be saved in httpd.conf.orig.
|
||||
</simpara>
|
||||
<para>
|
||||
To convert your .htaccess files, run the aphtaccess-conv.sh script (available in the scripts/apache/ directory as well):
|
||||
To convert your <filename>.htaccess</filename> files, run the
|
||||
<filename>aphtaccess-conv.sh</filename> script (available in
|
||||
the <dirname>scripts/apache/<dirname> directory as well):
|
||||
<informalexample>
|
||||
<programlisting role="shell">
|
||||
<![CDATA[
|
||||
~/php4/scripts/apache:# find / -name .htaccess -exec ./aphtaccess-conv.sh {} \;
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
<simpara>
|
||||
Likewise, your old .htaccess files will be saved with an .orig prefix.
|
||||
Likewise, your old <filename>.htaccess</filename> files will be saved with
|
||||
an .orig prefix.
|
||||
</simpara>
|
||||
<simpara>
|
||||
The conversion scripts require awk to be installed.
|
||||
|
|
Loading…
Reference in a new issue