📄 faq.general.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>General Information</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="faq.html">FAQ</a></div> <div class="next" style="text-align: right; float: right;"><a href="faq.mailinglist.html">Mailing lists</a></div> <div class="up"><a href="faq.html">FAQ</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>General Information</h1> <p class="para"> This section holds the most general questions about PHP: what it is and what it does. </p> <div class="qandaset"><ol class="qandaset_questions"><li><a href="#faq.general.what"> What is PHP? </a></li><li><a href="#faq.general.acronym"> What does PHP stand for? </a></li><li><a href="#faq.general.relation-versions"> What is the relation between the versions? </a></li><li><a href="#faq.general.running-concurent"> Can I run several versions of PHP at the same time? </a></li><li><a href="#faq.general.differences-34"> What are the differences between PHP 3 and PHP 4? </a></li><li><a href="#faq.general.differences-45"> What are the differences between PHP 4 and PHP 5? </a></li><li><a href="#faq.general.bug"> I think I found a bug! Who should I tell? </a></li></ol> <dl> <dt><strong> <p class="para">What is PHP?</p> </strong></dt> <dd><a name="faq.general.what"></a> <p class="para"> From the <a href="preface.html" class="link">preface of the manual</a>: </p> <p class="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. </p> </dd> </dl> <dl> <dt><strong> <p class="para">What does PHP stand for?</p> </strong></dt> <dd><a name="faq.general.acronym"></a> <p class="para"> PHP stands for <em class="emphasis">PHP: Hypertext Preprocessor</em>. This confuses many people because the first word of the acronym is the acronym. This type of acronym is called a recursive acronym. For more information, the curious can visit <a href="http://foldoc.org/" class="link external">» Free On-Line Dictionary of Computing</a> or the <a href="http://en.wikipedia.org/wiki/Recursive_acronym" class="link external">» Wikipedia entry on recursive acronyms</a>. </p> </dd> </dl> <dl> <dt><strong> <p class="para">What is the relation between the versions?</p> </strong></dt> <dd><a name="faq.general.relation-versions"></a> <p class="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 5 is the current generation of PHP, which uses the <a href="http://www.zend.com/" class="link external">» Zend engine 2</a> which, among other things, offers many additional <a href="language.oop5.html" class="link">OOP</a> features. </p> </dd> </dl> <dl> <dt><strong> <p class="para">Can I run several versions of PHP at the same time?</p> </strong></dt> <dd><a name="faq.general.running-concurent"></a> <p class="para"> Yes. See the <var class="filename">INSTALL</var> file that is included in the PHP source distribution. </p> </dd> </dl> <dl> <dt><strong> <p class="para">What are the differences between PHP 3 and PHP 4?</p> </strong></dt> <dd><a name="faq.general.differences-34"></a> <p class="para"> Here's a list of some of the more important new features: <ul class="itemizedlist"> <li class="listitem"> <span class="simpara">Extended API module</span> </li> <li class="listitem"> <span class="simpara">Generalized build process under Unix</span> </li> <li class="listitem"> <span class="simpara">Generic web server interface that also supports multi-threaded web servers</span> </li> <li class="listitem"> <span class="simpara">Improved syntax highlighter</span> </li> <li class="listitem"> <span class="simpara">Native HTTP session support</span> </li> <li class="listitem"> <span class="simpara">Output buffering support</span> </li> <li class="listitem"> <span class="simpara">More powerful configuration system</span> </li> <li class="listitem"> <span class="simpara">Reference counting</span> </li> </ul> Please see the <a href="http://www.zend.com/zend/whats-new.php" class="link external">» What's new in PHP 4 overview</a> for a detailed explanation of these features and more. </p> </dd> </dl> <dl> <dt><strong> <p class="para">What are the differences between PHP 4 and PHP 5?</p> </strong></dt> <dd><a name="faq.general.differences-45"></a> <p class="para"> While PHP 5 was purposely designed to be as compatible as possible with previous versions, there are some significant changes. Some of these changes include: <ul class="itemizedlist"> <li class="listitem"> <span class="simpara">A <a href="language.oop5.html" class="link">new OOP model</a> based on the <em class="emphasis">Zend Engine 2.0</em></span> </li> <li class="listitem"> <span class="simpara">A new extension for improved MySQL support</span> </li> <li class="listitem"> <span class="simpara">Built-in native support for SQLite</span> </li> <li class="listitem"> <span class="simpara">A new error reporting constant, <a href="http://www.php.net/manual/en/migrating5.errorrep.php" class="link external">» E_STRICT</a>, for run-time code suggestions </span> </li> <li class="listitem"> <span class="simpara">A host of new <a href="http://www.php.net/manual/en/migration5.functions.php" class="link external">» functions</a> to simplify code authoring (and reduce the need to write your own functions for many common procedures) </span> </li> </ul> For more detailed information, please view the section on <a href="http://www.php.net/manual/en/faq.migration5.php" class="link external">» Migrating from PHP 4 to PHP 5</a> and the section on <a href="http://www.php.net/manual/en/migration5.incompatible.php" class="link external">» Backwards Incompatible Changes</a>. </p> </dd> </dl> <dl> <dt><strong> <p class="para"> I think I found a bug! Who should I tell? </p> </strong></dt> <dd><a name="faq.general.bug"></a> <p class="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 <a href="http://bugs.php.net/" class="link external">» http://bugs.php.net/</a>. </p> </dd> </dl> </div> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="faq.html">FAQ</a></div> <div class="next" style="text-align: right; float: right;"><a href="faq.mailinglist.html">Mailing lists</a></div> <div class="up"><a href="faq.html">FAQ</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -