cvs: phpdoc-zh /faq general.xml installation.xml

From: Date: Wed, 28 Aug 2002 19:38:24 +0000
Subject: cvs: phpdoc-zh /faq general.xml installation.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-401@lists.php.net to get a copy of this message
dallas Wed Aug 28 15:38:24 2002 EDT Modified files: /phpdoc-zh/faq general.xml installation.xml Log: Translation completed.

Index: phpdoc-zh/faq/general.xml diff -u phpdoc-zh/faq/general.xml:1.1 phpdoc-zh/faq/general.xml:1.2 --- phpdoc-zh/faq/general.xml:1.1 Wed Aug 28 10:13:37 2002 +++ phpdoc-zh/faq/general.xml Wed Aug 28 15:38:24 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision:1.17 Maintainer: dallas Status: ready --> <chapter id="faq.general"> @@ -17,19 +17,13 @@ </question> <answer> <para> - From the <link linkend="preface">preface of the manual</link>: + ¸ù¾Ý<link linkend="preface">±¾ÊÖ²áµÄÐòÎÄ</link>£º </para> <para> - PHP is an HTML-embedded scripting language. Much of - its syntax is borrowed from C, Java and Perl with a couple of unique - PHP-specific features thrown in. The goal of the language is to - allow web developers to write dynamically generated pages quickly. + PHP ÊÇÒ»ÖÖ HTML ǶÈëʽµÄ½Å±¾ÓïÑÔ¡£ËüµÄºÜ¶àÓï·¨À´×Ô C£¬Java ºÍ Perl£¬²¢¾ßÓм¸¸öÖ»ÓÐ PHP ²ÅÓеÄÌØµã¡£¸ÃÓïÑÔµÄÖ÷ҪĿ±êÊÇÈà Web ¿ª·¢ÈËÔ±¿ìËÙµÄÊéд¶¯Ì¬Éú³ÉµÄÍøÒ³¡£ </para> <para> - A nice introduction to PHP by Stig S&aelig;ther Bakken can be found - <ulink url="&faqurl.zend.introduction;">here</ulink> on the Zend - website. Also, much of the - <ulink url="&url.php.conf;">PHP Conference Material</ulink> is freely available. + <ulink url="&faqurl.zend.introduction;">ÕâÀï</ulink>ÓÐÒ»¸öλÓÚ Zend ÍøÕ¾ÖÐÓÉ Stig S&aelig;ther Bakken дµÄºÜºÃµÄ½éÉÜ¡£Í¬Ñù£¬´óÁ¿µÄ<ulink url="&url.php.conf;">PHP ÑÐÌÖ»áËØ²Ä</ulink>Ò²¿ÉÒÔÃâ·ÑµÃµ½¡£ </para> </answer> </qandaentry> @@ -40,26 +34,18 @@ </question> <answer> <para> - PHP stands for <emphasis>PHP: Hypertext Preprocessor</emphasis>. - This confuses many people because the first word of the acronym is - the acronym. This type of acronym is called a recursive acronym. - The curious can visit - <ulink url="&url.foldoc;">Free On-Line Dictionary of Computing</ulink> - for more information on recursive acronyms. + PHP ÊÇ <emphasis>PHP: Hypertext Preprocessor</emphasis> µÄËõд¡£ºÜ¶àÈËÓÐЩºýÍ¿ÁË£¬ÒòΪËõдÖеÚÒ»¸ö×ÖĸҲÊǸöËõд¡£ÕâÖÖ·½·¨½Ð×öµÝ¹éËõд¡£ºÃÆæµÄÈË¿ÉÒÔ·ÃÎÊ <ulink url="&url.foldoc;">Free On-Line Dictionary of Computing</ulink> À´µÃµ½¸ü¶àµÝ¹éËõдµÄÐÅÏ¢¡£ </para> </answer> </qandaentry> <qandaentry id="faq.general.relation-versions"> <question> - <para>PHP ²»Í¬°æ±¾Ö®¼äÓÐʲô¹ØÏµ£¿</para> + <para>PHP °æ±¾Ö®¼äÓÐʲôÁªÏµ£¿</para> </question> <answer> <para> - PHP/FI 2.0 is an early and no longer supported version of PHP. PHP 3 - is the successor to PHP/FI 2.0 and is a lot nicer. PHP 4 is the latest - generation of PHP, which uses the <ulink url="&faqurl.zend;">Zend - engine</ulink> under the hood. + PHP/FI 2.0 ÊÇ×îÔçµÄ PHP °æ±¾£¬ÒѾ­²»ÔÙÖ§³Ö¡£PHP 3 ÊÇ PHP/FI 2.0 µÄ¼Ì³ÐÕߣ¬ÒªºÃºÜ¶à¡£PHP 4 ÊÇ×îÐÂÒ»´úµÄ PHP£¬ÄÚ²¿Ê¹ÓÃÁË <ulink url="&faqurl.zend;">Zend ÒýÇæ</ulink>¡£ </para> </answer> </qandaentry> @@ -70,9 +56,7 @@ </question> <answer> <para> - Yes. See the <filename>INSTALL</filename> file that is included - in the PHP 4 source distribution. Also, read the related - <link linkend="migration4.php4.with.php3">appendix</link>. + ¿ÉÒÔ¡£¼û PHP 4 Ô´³ÌÐò·¢ÐаüÖÐµÄ <filename>INSTALL</filename> Îļþ¡£Í¬ÑùÒ²¿ÉÒÔÔĶÁÏà¹Ø<link linkend="migration4.php4.with.php3">¸½Â¼</link>¡£ </para> </answer> </qandaentry> @@ -83,40 +67,34 @@ </question> <answer> <para> - There are <ulink url="&faqurl.zend.articles;">a couple of articles</ulink> - written on this by the authors of PHP 4. Here's a list of some of - the more important new features: + ¹ØÓÚÕâ¸öÓÐ PHP 4 µÄ×÷ÕßдµÄ<ulink url="&faqurl.zend.articles;">һЩ˵Ã÷</ulink>¡£ÕâÀïÁгöһЩ±È½ÏÖØÒªµÄÐÂÌØµã£º <itemizedlist> <listitem> - <simpara>Extended API module</simpara> + <simpara>À©Õ¹ÁË API Ä£¿é</simpara> </listitem> <listitem> - <simpara>Generalized build process under UNIX</simpara> + <simpara>UNIX ϵÄͨÓñàÒë²½Öè</simpara> </listitem> <listitem> - <simpara>Generic web server interface that also supports - multi-threaded web servers</simpara> + <simpara>Ò²Ö§³Ö¶àÏß³Ì web ·þÎñÆ÷µÄͨÓà web ·þÎñÆ÷½Ó¿Ú</simpara> </listitem> <listitem> - <simpara>Improved syntax highlighter</simpara> + <simpara>ÔöÇ¿ÁËÓï·¨¸ßÁÁÏÔʾ</simpara><!-- ÓÃÓÚ show_source() º¯Êý£¿ --> </listitem> <listitem> - <simpara>Native HTTP session support</simpara> + <simpara>±¾µØ HTTP session Ö§³Ö</simpara> </listitem> <listitem> - <simpara>Output buffering support</simpara> + <simpara>Ö§³ÖÊä³ö»º³å</simpara> </listitem> <listitem> - <simpara>More powerful configuration system</simpara> + <simpara>¸üÇ¿´óµÄÅäÖÃϵͳ</simpara> </listitem> <listitem> - <simpara>Reference counting</simpara> + <simpara>ÒýÓüÆÊý</simpara> </listitem> </itemizedlist> - Please see the <ulink url="&faqurl.zend.new;">What's new in - PHP 4 overview</ulink> for a detailed explanation of these - features and more. If you're migrating from PHP 3 to PHP 4, - also read the related <link linkend="migration4">appendix</link>. + Çë·ÃÎÊ<ulink url="&faqurl.zend.new;">PHP 4 ÐÂÌØµã¸ÅÀÀ</ulink>²é¿´ÒÔÉϼ°¸ü¶àÌØµãµÄÏêϸ½âÊÍ¡£Èç¹ûÄã´Ó PHP 3 ÒÆÖ²µ½ PHP 4£¬Ò²ÇëÔĶÁÏà¹ØµÄ<link linkend="migration4">¸½Â¼</link>¡£ </para> </answer> </qandaentry> @@ -127,14 +105,7 @@ </question> <answer> <para> - You should go to the PHP Bug Database and make sure the bug - isn't a known bug. If you don't see it in the database, use - the reporting form to report the bug. It is important to use - the bug database instead of just sending an email to one of the - mailing lists because the bug will have a tracking number assigned - and it will then be possible for you to go back later and check - on the status of the bug. The bug database can be found at - <ulink url="&faqurl.php.bugs;">&faqurl.php.bugs;</ulink>. + ÄãÓ¦¸Ã·ÃÎÊ PHP Bug Êý¾Ý¿â²¢È·ÈÏÄã·¢ÏֵIJ»ÊÇÒ»¸öÒÑÖªµÄ bug¡£Èç¹ûÄãÔÚÊý¾Ý¿âÖÐû¿´µ½Í¬ÑùµÄ£¬Óñ¨¸æ±í¸ñÀ´±¨¸æ´Ë bug¡£Ê¹Óà bug Êý¾Ý¿â¶ø²»ÊǸøÄ³¸öÓʼþÁÐ±í·¢Óʼþ·Ç³£ÖØÒª£¬ÒòΪ¸Ã bug »á±»·ÖÅäÒ»¸ö¸ú×ÙºÅÂ룬ÕâÑùÄã¾ÍÓпÉÄÜÔÚÒÔºó»ØÀ´²é¿´¸Ã bug µÄ״̬¡£Bug Êý¾Ý¿âÔÚ<ulink url="&faqurl.php.bugs;">&faqurl.php.bugs;</ulink>¡£ </para> </answer> </qandaentry> Index: phpdoc-zh/faq/installation.xml diff -u phpdoc-zh/faq/installation.xml:1.1 phpdoc-zh/faq/installation.xml:1.2 --- phpdoc-zh/faq/installation.xml:1.1 Wed Aug 28 10:13:37 2002 +++ phpdoc-zh/faq/installation.xml Wed Aug 28 15:38:24 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision:1.17 Maintainer: dallas Status: ready --> <chapter id="faq.installation"> @@ -10,46 +10,30 @@ ±¾Õ°üÀ¨Á˰²×° PHP µÄ³£¼ûÎÊÌâ¡£PHP ¿ÉÒÔÓÃÓÚ¼¸ºõÈκβÙ×÷ϵͳ£¨¿ÉÄܳýÁË OSX ֮ǰµÄ MacOSÖ®Í⣩£¬ÒÔ¼°¼¸ºõÈκΠweb ·þÎñÆ÷¡£ </para> <para> - To install PHP, follow the instructions in the - <ulink url="&faqurl.file.installation;">INSTALL</ulink> - file located in the distribution. Windows users should also read the - <ulink url="&faqurl.file.readmewin;">install.txt</ulink> - file. There are also some helpful hints for Windows users - <link linkend="install.windows">here</link>. + Òª°²×° PHP£¬Çë°´ÕÕ·¢ÐаüÖÐµÄ <ulink url="&faqurl.file.installation;">INSTALL</ulink> ÎļþµÄ˵Ã÷½øÐС£Windows Óû§Í¬Ñù»¹ÒªÔĶÁ <ulink + url="&faqurl.file.readmewin;">install.txt</ulink> Îļþ¡£¶ÔÓÚ Windows Óû§»¹ÓÐһЩÓÐÓõÄÌáʾÔÚ <link linkend="install.windows">Windows ϵͳϰ²×°</link>Ò»½Ú¡£ </para> <qandaset> <qandaentry id="faq.installation.phpini"> <question> <para> - Unix/Windows£º&php.ini; ÎļþÓ¦¸Ã·ÅÔÚÄÄÀ + Unix/Windows£ºÓ¦¸ÃÉÏÄĶùÈ¥ÕÒÎÒµÄ &php.ini; Îļþ£¿ </para> </question> <answer> <para> - By default on UNIX it should be in <filename>/usr/local/lib</filename> - which is <filename>&lt;install-path&gt;/lib</filename>. - Most people will want to change this at compile-time with the - <link linkend="install.configure.with-config-file-path">--with-config-file-path</link> - flag. You would, for example, set it with something like: + UNIX ÖÐĬÈÏÔÚ <filename>/usr/local/lib</filename> Ŀ¼ÖУ¬Ò²¾ÍÊÇ <filename>&lt;install-path&gt;/lib</filename>¡£ºÜ¶àÈË»áÔÚ±àÒëʱͨ¹ý <link linkend="install.configure.with-config-file-path">--with-config-file-path</link> ±ê¼ÇÀ´¸Ä±ä·¾¶¡£ÀýÈçÄã¿ÉÒÔ½«Â·¾¶ÉèΪ£º <programlisting> --with-config-file-path=/etc </programlisting> - And then you would copy <filename>php.ini-dist</filename> from - the distribution to <filename>/etc/php.ini</filename> and - edit it to make any local changes you want. + È»ºóÄã´Ó·¢ÐаüÖн« <filename>php.ini-dist</filename> ¿½±´Îª <filename>/etc/php.ini</filename> °´ÕÕÄãÏëÒªµÄÐÞ¸ÄÀ´±à¼­Ëü¡£ </para> <para> - On Windows the default path for the &php.ini; file is the Windows - directory. If you're using the Apache webserver, &php.ini; is first - searched in the Apaches install directory, e.g. <filename>c:\program - files\apache group\apache</filename>. This way you can have - different &php.ini; files for different versions of Apache on the same - machine. + Windows ÖÐ &php.ini; ÎļþµÄĬÈÏ·¾¶ÔÚ Windows Ŀ¼Ï¡£Èç¹ûÄãʹÓõÄÊÇ Apache ·þÎñÆ÷£¬Ôò»áÊ×ÏÈÔÚ Apache µÄ°²×°Ä¿Â¼ÖÐѰÕÒ &php.ini;£¬ÀýÈç <filename>C:\Program Files\Apache Group\Apache</filename>¡£ÕâÑùÔÚͬһ̨»úÆ÷Éϲ»Í¬°æ±¾µÄ Apache ¾Í¿ÉÒÔÓв»Í¬µÄ &php.ini; Îļþ¡£ </para> <para> - See also the chapter about the <link - linkend="configuration.file">configuration file</link>. + ²Î¼û<link linkend="configuration.file">ÅäÖÃÎļþ</link>µÄÕ½ڡ£ </para> </answer> </qandaentry> @@ -62,17 +46,11 @@ </question> <answer> <para> - This probably means that PHP is having some sort of problem - and is core-dumping. Look in your server error log to see if - this is the case, and then try to reproduce the problem with - a small test case. If you know how to use 'gdb', it is very - helpful when you can provide a backtrace with your bug report - to help the developers pinpoint the problem. If you are using - PHP as an Apache module try something like: + Õâ¿ÉÄÜÒâζ×Å PHP ·¢ÉúÁËijÀà´í¶øµ¼ÖÂÁË core dump¡£²é¿´·þÎñÆ÷µÄ´íÎóÈÕÖ¾¿´¿´ÊDz»ÊÇÕâÑù£¬ÔÙÓÃÒ»¸öСµÄ²âÊÔÀý×ÓÊÔ×ÅÖØÏÖ´ËÎÊÌâ¡£Èç¹ûÄã»áÓá°gdb¡±µÄ»°£¬ÄÇôÔÚ bug ±¨¸æÖÐÌṩ»ØËݸú×ÙºÜÓÐÖúÓڰ↑·¢ÈËÔ±²éÃ÷ÎÊÌâ¡£Èç¹ûÄãÓà Apache µÄÄ£¿é·½Ê½Ê¹Óà PHP£¬ÊÔ×ÅÕâô×ö£º <itemizedlist> <listitem> <para> - Stop your httpd processes + Í£Ö¹ httpd ½ø³Ì </para> </listitem> <listitem> @@ -82,7 +60,7 @@ </listitem> <listitem> <para> - Stop your httpd processes + Í£Ö¹ httpd ½ø³Ì </para> </listitem> <listitem> @@ -92,7 +70,7 @@ </listitem> <listitem> <para> - Then fetch the URL causing the problem with your browser + È»ºóÔÚÄãµÄä¯ÀÀÆ÷ÖзÃÎʵ¼Ö´íÎóµÄ URL </para> </listitem> <listitem> @@ -102,28 +80,23 @@ </listitem> <listitem> <para> - If you are getting a core dump, gdb should inform you of this now + Èç¹ûÄãÓöµ½ core dump£¬gdb ´Ëʱ¾Í»á֪ͨÄã </para> </listitem> <listitem> <para> - type: bt + ÊäÈ룺bt </para> </listitem> <listitem> <para> - You should include your backtrace in your bug report. This should be submitted to - <ulink url="&faqurl.php.bugs;">&faqurl.php.bugs;</ulink> + ÄãÓ¦¸ÃÔÚ bug ±¨¸æÖаüÀ¨ÄãµÄ»ØËÝ×·×Ù¡£Ó¦¸ÃÌá½»µ½ <ulink url="&faqurl.php.bugs;">&faqurl.php.bugs;</ulink> </para> </listitem> </itemizedlist> </para> <para> - If your script uses the regular expression functions - (<function>ereg</function> and friends), you should make sure - that you compiled PHP and Apache with the same regular - expression package. This should happen automatically with - PHP and Apache 1.3.x + Èç¹ûÄãµÄ½Å±¾Ê¹ÓÃÁËÕýÔò±í´ïʽº¯Êý£¨<function>ereg</function> µÈ£©£¬ÄãÓ¦¸ÃÈ·ÈÏÄãÔÚ±àÒë PHP ºÍ Apache ʱʹÓÃÁËͬһ¸öÕýÔò±í´ïʽ°ü¡£ÔÚ PHP ºÍ Apache 1.3.x ÖÐÓ¦¸Ã×Ô¶¯¾ÍÊÇÕâÑù¡£ </para> </answer> </qandaentry> @@ -136,9 +109,7 @@ </question> <answer> <para> - Assuming you installed both Apache and PHP from RPM packages, - you need to uncomment or add some or all of the following lines - in your <filename>http.conf</filename> file: + ¼Ù¶¨ÄãµÄ Apache ºÍ PHP ¶¼ÊÇ´Ó RPM °üÖа²×°µÄ£¬ÄãÐèÒªÔÚ <filename>http.conf</filename> ÎļþÖÐÈ¡ÏûÒÔϲ¿·Ö»òÈ«²¿ÐеÄ×¢ÊÍ£¬»òÕß°ÑËüÃǼӵ½¸ÃÎļþÖУº <programlisting> # Extra Modules AddModule mod_php.c @@ -151,13 +122,12 @@ LoadModule php4_module modules/libphp4.so /* for PHP 4 */ LoadModule perl_module modules/libperl.so </programlisting> - And add: + ²¢ÇÒ°Ñ£º <programlisting> AddType application/x-httpd-php3 .php3 /* for PHP 3 */ AddType application/x-httpd-php .php /* for PHP 4 */ </programlisting> - ... to the global properties, or to the properties of the - VirtualDomain you want to have PHP support added to. + ¼Óµ½È«¾ÖÊôÐÔÖУ¬»ò¼Óµ½ÄãÏ£Íû¼ÓÈë PHP Ö§³ÖµÄÐéÄâÓòÖС£ </para> </answer> </qandaentry> @@ -170,31 +140,22 @@ </question> <answer> <para> - Due to the way PHP 3 built, it is not easy to build a - complete flexible PHP RPM. This issue is addressed in PHP 4. - For PHP 3, we currently suggest you use the mechanism described in the - INSTALL.REDHAT file in the PHP distribution. If you insist on using - an RPM version of PHP 3, read on... + ÓÉÓÚ PHP 3 ¹¹ÔìµÄÔ­Òò£¬²»ÈÝÒ×±àÒë³öÒ»¸öÍêÈ«Áé»îµÄ PHP RPM °üÀ´¡£Õâ¸öÎÊÌâÔÚ PHP 4 Öнâ¾öÁË¡£¶ÔÓÚ PHP 3 À´Ëµ£¬ÎÒÃÇĿǰ½¨ÒéÄãÓà PHP ·¢ÐаüÖÐ INSTALL.REDHAT ÎļþÖÐËùÃèÊöµÄ»úÖÆ¡£Èç¹ûÄã¼á³ÖÒªÓà PHP 3 µÄ RPM °æ±¾£¬Çë½Ó×ÅÍùÏ¿´¡£ </para> <para> - The RPM packagers are setting up the RPMS to install - without database support to simplify installations <emphasis>and</emphasis> - because RPMS use /usr/ instead of the standard /usr/local/ directory for - files. You need to tell the RPM spec file which databases to support - and the location of the top-level of your database server. + ΪÁ˼ò»¯°²×°<emphasis>ÒÔ¼°</emphasis>ÓÉÓÚ RPMS ʹÓÃÁË /usr/ ¶ø²»ÊDZê×¼µÄ /usr/local/ Ŀ¼À´´æ·ÅÎļþ£¬ÖÆ×÷ RPM °üµÄÈËÉ趨 RPMS ²»°²×°ÈκÎÊý¾Ý¿âÖ§³Ö¡£ÄãÐèÒª¸æËß RPM ˵Ã÷ÎļþÒªÖ§³ÖÄĸöÊý¾Ý¿âÒÔ¼°ÄãµÄÊý¾Ý¿â·þÎñÆ÷×î¸ß²ã·¾¶¡£ </para> <para> - This example will explain the process of adding support for the - popular MySQL database server, using the mod installation for Apache. + ÏÂÃæµÄÀý×Ó½«½âÊÍÓÃÄ£¿é°²×°Ï嵀 ApacheÖУ¬¼ÓÈëÁ÷ÐÐµÄ MySQL Êý¾Ý¿â·þÎñÆ÷Ö§³ÖµÄ¹ý³Ì¡£ +<!-- This example will explain the process of adding support for the + popular MySQL database server, using the mod installation for Apache. --> </para> <para> - Of course all of this information can be adjusted for any database - server that PHP supports. We will assume you installed MySQL and Apache - completely with RPMS for this example as well. + µ±È»ÕâЩÐÅÏ¢¿ÉÒÔµ÷ÕûÓÃÓÚÈκΠPHP Ö§³ÖµÄÊý¾Ý¿â·þÎñÆ÷¡£±¾ÀýÖÐÎÒÃÇÒ²¼Ù¶¨Äã´Ó RPMS ÖÐÍêÕû°²×°ÁË MySQL ºÍ Apache¡£ <itemizedlist> <listitem> <para> - First remove mod_php3 : + ÏÈÈ¥µô mod_php3£º <programlisting> rpm -e mod_php3 </programlisting> @@ -202,7 +163,7 @@ </listitem> <listitem> <para> - Then get the source rpm and INSTALL it, NOT --rebuild + È»ºóÈ¡µÃÔ´ÎļþµÄ rpm °ü²¢°²×°Ëü£¬¶ø²»ÊDZàÒëËü¡£ <programlisting> rpm -Uvh mod_php3-3.0.5-2.src.rpm </programlisting> @@ -210,17 +171,17 @@ </listitem> <listitem> <para> - Then edit the <filename>/usr/src/redhat/SPECS/mod_php3.spec</filename> file + ½Ó×ű༭ <filename>/usr/src/redhat/SPECS/mod_php3.spec</filename> Îļþ </para> <para> - In the %build section add the database support you want, and the path. + ÔÚ %build Ò»½Ú¼ÓÈëÄãÏëÒªµÄÊý¾Ý¿âÖ§³Ö£¬ÒÔ¼°Â·¾¶¡£ </para> <para> - For MySQL you would add + ¶ÔÓ¦ÓÚ MySQL ÄãÓ¦¸Ã¼ÓÈë <programlisting> --with-mysql=/usr \ </programlisting> - The %build section will look something like this: + %build Ò»½Ú¿´ÉÏÈ¥½«ÀàËÆÕâÑù£º <programlisting> ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ @@ -235,7 +196,7 @@ </listitem> <listitem> <para> - Once this modification is made then build the binary rpm as follows: + Ò»µ©Íê³ÉÁËÕâ¸öÐ޸쬾ÍÕâÑù½¨Á¢¶þ½øÖƳÌÐòµÄ rpm£º <programlisting> rpm -bb /usr/src/redhat/SPECS/mod_php3.spec </programlisting> @@ -243,17 +204,14 @@ </listitem> <listitem> <para> - Then install the rpm + È»ºó°²×° rpm <programlisting> rpm -ivh /usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm </programlisting> </para> </listitem> </itemizedlist> - Make sure you restart Apache, and you now have PHP 3 with MySQL support - using RPM's. Note that it is probably much easier to just build - from the distribution tarball of PHP 3 and follow the instructions in - <filename>INSTALL.REDHAT</filename> found in that distribution. + È·ÈÏÖØÐÂÆô¶¯ÁË Apache£¬ÕâÏÂÄã¾ÍÓÐÓà RPM °²×°µÄ ´ø MySQL Ö§³ÖµÄ PHP 3 ÁË¡£×¢Òâ°´ÕÕ PHP 3 ·¢ÐаüÖÐ <filename>INSTALL.REDHAT</filename> ÎļþµÄ˵Ã÷À´±àÒëÒ²Ðí»á¸üÈÝÒ×һЩ¡£ </para> </answer> </qandaentry> @@ -266,10 +224,7 @@ </question> <answer> <para> - No, PHP works fine with the FrontPage extensions. The problem - is that the FrontPage patch modifies several Apache structures, - that PHP relies on. Recompiling PHP (using 'make clean ; make') - after the FP patch is applied would solve the problem. + ¼æÈݵġ£PHP ¿ÉÒÔºÍ FrontPage extensions Ò»Æð¹¤×÷£¬ÎÊÌâÊÇ FrontPage ²¹¶¡ÐÞ¸ÄÁ˼¸¸ö PHP ÒÀÀµµÄ Apache ¹¹Ôì¡£ÔÚ FrontPage ²¹¶¡°²×°Ö®ºóÖ®ºóÖØÐ±àÒë PHP£¨Óá°make clean ; make¡±£©¿ÉÒÔ½â¾ö´ËÎÊÌâ¡£ </para> </answer> </qandaentry> @@ -282,12 +237,7 @@ </question> <answer> <para> - Do a 'view source' in the web browser and you will probably - find that you can see the source code of your PHP script. - This means that the web server did not send the script to - PHP for interpretation. Something is wrong with the server - configuration - double check the server configuration against - the PHP installation instructions. + ÓÃä¯ÀÀÆ÷Öеġ°²é¿´Ô´Îļþ¡±£¬Äã¿ÉÄܻᷢÏÖÄãÄÜ¿´µ½ PHP ½Å±¾µÄÔ´³ÌÐò¡£ÕâÒâζ×Å web ·þÎñÆ÷ûÓаѽű¾·¢Ë͸ø PHP ½âÊÍ¡£·þÎñÆ÷ÅäÖÃÄÄÀï³öÁËÎÊÌ⣬¶ÔÕÕ PHP °²×°ËµÃ÷×Ðϸ¼ì²é·þÎñÆ÷ÅäÖᣠ</para> </answer> </qandaentry> @@ -300,17 +250,7 @@ </question> <answer> <para> - Something went wrong when the server tried to run PHP. To - get to see a sensible error message, from the command line, - change to the directory containing the PHP executable - (<filename>php.exe</filename> on Windows) and run - <literal>php -i</literal>. If PHP has any problems running, - then a suitable error message will be displayed which will - give you a clue as to what needs to be done next. If you - get a screen full of html codes (the output of the - <function>phpinfo</function> function) then PHP is working, - and your problem may be related to your server configuration - which you should double check. + µ±·þÎñÆ÷³¢ÊÔÔËÐÐ PHP ʱ³öÁË´í¡£ÒªÏë¿´µ½ÓÐÒâÒåµÄ´íÎóÐÅÏ¢£¬ÔÚÃüÁîÐÐÖÐÒÆ¶¯µ½ PHP ¿ÉÖ´ÐгÌÐò£¨Windows ÖÐÊÇ <filename>php.exe</filename>£©µÄĿ¼Ï²¢ÔËÐÐ <literal>php -i</literal>¡£Èç¹û PHP ÔËÐÐÓÐÈκÎÎÊÌ⣬ÄÇô»áÏÔʾÏàÓ¦µÄ´íÎóÐÅÏ¢£¬Õ⽫¸øÄãÏÂÒ»²½Òª×öʲôµÄÏßË÷¡£Èç¹ûÄãµÃµ½ÂúÆÁÄ» html ´úÂ루<function>phpinfo</function> º¯ÊýµÄÊä³ö£©µÄ»°ËµÃ÷ PHP ±¾Éí¹¤×÷Õý³££¬ÄãµÄÎÊÌâ¿ÉÄܺÍÄãµÄ·þÎñÆ÷ÅäÖÃÓйأ¬Òª×Ðϸ¼ì²é¡£ </para> </answer> </qandaentry> @@ -329,9 +269,7 @@ </question> <answer> <para> - This has actually nothing to do with PHP, but with the MySQL - client libraries. Some need --with-zlib, others do not. This - is also covered in the MySQL FAQ. + Õâʵ¼ÊÉÏºÍ PHP ûÓйØÏµ£¬¶øºÍ MySQL µÄ¿Í»§¶Ë¿âÓйء£ÓеÄÐèÒª --with-zlib£¬ÓеIJ»ÐèÒª¡£Õâ¸öÎÊÌâÔÚ MySQL µÄ FAQ ÖÐÒ²°üÀ¨ÁË¡£ </para> </answer> </qandaentry> @@ -350,42 +288,20 @@ </question> <answer> <para> - This error message means that PHP failed to output anything - at all. To get to see a sensible error message, from the - command line, change to the directory containing the PHP - executable (<filename>php.exe</filename> on Windows) and run - <literal>php -i</literal>. If PHP has any problems running, - then a suitable error message will be displayed which will - give you a clue as to what needs to be done next. If you - get a screen full of html codes (the output of the - <function>phpinfo</function> function) then PHP is working. + Õâ¸ö´íÎóÐÅÏ¢Òâζ×Å PHP ¸ù±¾¾Í²»ÄܲúÉúÈκÎÊä³ö¡£ÒªÏë¿´µ½ÓÐÒâÒåµÄ´íÎóÐÅÏ¢£¬ÔÚÃüÁîÐÐÖÐÒÆ¶¯µ½ PHP ¿ÉÖ´ÐгÌÐò£¨Windows ÖÐÊÇ <filename>php.exe</filename>£©µÄĿ¼Ï²¢ÔËÐÐ <literal>php -i</literal>¡£Èç¹û PHP ÔËÐÐÓÐÈκÎÎÊÌ⣬ÄÇô»áÏÔʾÏàÓ¦µÄ´íÎóÐÅÏ¢£¬Õ⽫¸øÄãÏÂÒ»²½Òª×öʲôµÄÏßË÷¡£Èç¹ûÄãµÃµ½ÂúÆÁÄ» html ´úÂ루<function>phpinfo</function> º¯ÊýµÄÊä³ö£©µÄ»°ËµÃ÷ PHP ±¾Éí¹¤×÷Õý³£¡£ </para> <para> - Once PHP is working at the command line, try accessing the - script via the browser again. If it still fails then it - could be one of the following: + Ò»µ© PHP ÔÚÃüÁîÐÐÖй¤×÷Õý³££¬ÊÔ×Åͨ¹ýä¯ÀÀÆ÷ÔٴηÃÎʽű¾¡£Èç¹û»¹Ê§°ÜµÄ»°ÄÇ¿ÉÄÜÊÇÈçÏÂÔ­ÒòÖ®Ò»£º </para> <itemizedlist> <listitem> <simpara> - File permissions on your PHP script, - <filename>php.exe</filename>, <filename>php4ts.dll</filename>, - &php.ini; or any PHP extensions you are trying to load are such - that the anonymous internet user - <literal>ISUR_&lt;machinename&gt;</literal> cannot access them. + ÎļþȨÏÞÎÊÌ⣬ÄãµÄ PHP ½Å±¾£¬<filename>php.exe</filename>£¬<filename>php4ts.dll</filename>£¬&php.ini; »òÈκÎÄãÒª¼ÓÔØµÄ PHP À©Õ¹¿âÊÇÄäÃû internet Óû§ <literal>ISUR_&lt;machinename&gt;</literal> Ëù²»ÄÜ·ÃÎʵġ£ </simpara> </listitem> <listitem> <simpara> - The script file does not exist (or possibly isn't where you - think it is relative to your web root directory). Note that - for IIS you can trap this error by ticking the 'check file - exists' box when setting up the script mappings in the - Internet Services Manager. If a script file does not exist - then the server will return a 404 error instead. There is - also the additional benefit that IIS will do any - authentication required for you based on the NTLanMan - permissions on your script file. + ½Å±¾Îļþ²»´æÔÚ£¨»òÕßÓпÉÄܲ»ÔÚÄãÒÔΪµÄµØ·½£¬ºÍ web ¸ùĿ¼Óйأ©¡£×¢ÒâÔÚ IIS ÖÐͨ¹ý Internet Services Manager É趨½Å±¾Ó³ÉäʱѡÖС°¼ì²éÎļþÊÇ·ñ´æÔÚ¡±¿ÉÒÔ²¶×½µ½´Ë´íÎó¡£ÕâÑùÒ»À´Èç¹û½Å±¾Îļþ²»´æÔڵϰ·þÎñÆ÷¾Í»á·µ»ØÒ»¸ö 404 ´íÎóÐÅÏ¢¡£»¹ÓÐÒ»¸ö¶îÍâµÄºÃ´¦¾ÍÊǶÔÄãµÄ½Å±¾Îļþ IIS »á»ùÓÚ NTLanMan ȨÏÞÀ´ÌæÄã×öÈκÎÐèÒªµÄÈÏÖ¤¡£ </simpara> </listitem> </itemizedlist> @@ -400,12 +316,7 @@ </question> <answer> <para> - Make sure any user who needs to run a PHP script has the rights - to run <filename>php.exe</filename>! IIS uses an anonymous user - which is added at the time IIS is installed. This user needs - rights to <filename>php.exe</filename>. Also, any authenticated - user will also need rights to execute <filename>php.exe</filename>. - And for IIS4 you need to tell it that PHP is a script engine. + È·ÈÏÐèÒªÔËÐÐ PHP ½Å±¾µÄÈκÎÓû§ÓÐȨÏÞÔËÐÐ <filename>php.exe</filename>£¡IIS ʹÓÃÒ»¸öÔÚ°²×° IIS ʱÌí¼ÓµÄÄäÃûÓû§¡£Õâ¸öÓû§ÐèÒªÓзÃÎÊ <filename>php.exe</filename> µÄȨÏÞ¡£Í¬ÑùÈκÎÈÏÖ¤µÄÓû§Ò²ÐèÒªÖ´ÐÐ <filename>php.exe</filename> µÄȨÏÞ¡£ÔÚ IIS4 ÖÐÄãÐèÒª¸æËßËü PHP ÊÇÒ»¸ö½Å±¾ÒýÇæ¡£ </para> </answer> </qandaentry>
« previous php.doc.zh (#401) next »