1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
|
<?xml version="1.0" encoding="big5"?>
<chapter id="introduction">
<title>ި</title>
<sect1 id="intro-whatis">
<title>PHP O ?</title>
<simpara>
PHP (xW "PHP: Hypertext Preprocessor") O@إ]tb HTML bAWB檺yC
</simpara>
<para>
oӵװ`A 쩳ONO ? ݤUܽd :
</para>
<para>
<example>
<title>²Ҥl</title>
<programlisting role="php">
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "Hi, I'm a PHP script!";
?>
</body>
</html>
</programlisting>
</example>
</para>
<para>
@UWҤlM@ PerlB C g CGI {A A|o{`²C ǥΨӿX HTML 奻gjתOFA ӥN OOJb HTML {XCoǵ{X|Swu@ApWҫKOX@rC PHP {yyΫw
}l/
</para>
<para>
]_ӥHKMu HTML e}C PHP A| PHP eAA̼ҹLyX PHP t{OӰC ̫ABGMӪ HTML @ְeȤݥhC </para>
</sect1>
<sect1 id="intro-whatcando">
<title>PHP iH ?</title>
<para>
b̧CnDUA PHP iHҦ CGI {u@C pWơA ۰ʫp HTML Ϊ̦e COOKIESC
</para>
<para>
L PHP ̧lޤHaO·hƮwnC ΥӼg@¸Ʈw²YٮeC PHP ثeªƮw]A: <blockquote>
<simplelist columns="3">
<member>Adabas D</member>
<member>dBase</member>
<member>Empress</member>
<member>FilePro (read-only)</member>
<member>Hyperwave</member>
<member>IBM DB2</member>
<member>Informix</member>
<member>Ingres</member>
<member>InterBase</member>
<member>FrontBase</member>
<member>mSQL</member>
<member>Direct MS-SQL</member>
<member>MySQL</member>
<member>ODBC</member>
<member>Oracle (OCI7 and OCI8)</member>
<member>Ovrimos</member>
<member>PostgreSQL</member>
<member>Solid</member>
<member>Sybase</member>
<member>Velocis</member>
<member>Unix dbm</member>
</simplelist>
</blockquote>
</para>
<para>
~A PHP ]iqL IMAPB SNMPB NNTPB POP3 Ʀ HTTP qTwөMOWAȬ۳sC NOsChf SOCKET ]qTwiΡC </para>
<!--
<figure>
<title>c</title>
<graphic fileref="../images/php3_internal_structure.gif"/>
</figure>
<figure>
<title>إ߳sWh</title>
<graphic fileref="../images/php3_request_scheme.gif"/>
</figure>
-->
</sect1>
<sect1 id="intro-history">
<title>PHP G</title>
<simpara>
PHP O 1994 ѥ &link.rasmus; QXӪC
PHP was conceived sometime in the fall of 1994 by &link.rasmus;.
Early non-released versions were used on his home page to keep
track of who was looking at his online resume. The first version
used by others was available sometime in early 1995 and was known
as the Personal Home Page Tools. It consisted of a very
simplistic parser engine that only understood a few special macros
and a number of utilities that were in common use on home pages
back then. A guestbook, a counter and some other stuff. The
parser was rewritten in mid-1995 and named PHP/FI Version 2. The
FI came from another package Rasmus had written which interpreted
html form data. He combined the Personal Home Page tools scripts
with the Form Interpreter and added mSQL support and PHP/FI was
born. PHP/FI grew at an amazing pace and people started
contributing code to it.
</simpara>
<simpara>
It is difficult to give any hard statistics, but it is estimated
that by late 1996 PHP/FI was in use on at least 15,000 web sites
around the world. By mid-1997 this number had grown to over
50,000. Mid-1997 also saw a change in the development of PHP. It
changed from being Rasmus' own pet project that a handful of
people had contributed to, to being a much more organized team
effort. The parser was rewritten from scratch by Zeev Suraski and
Andi Gutmans and this new parser formed the basis for PHP Version
3. A lot of the utility code from PHP/FI was ported over to PHP 3
and a lot of it was completely rewritten.
</simpara>
<simpara>
The latest version (PHP 4) uses the <ulink
url="&url.zend;">Zend</ulink> scripting engine to deliver higher
performance, supports an even wider array of third-party libraries
and extensions, and runs as a native server module with all of the
popular web servers.
</simpara>
<simpara>
Today (1/2001) PHP 3 or PHP 4 now ships with a number of
commercial products such as Red Hat's Stronghold web server.
A conservative estimate based on an extrapolation from
numbers provided by <ulink url="&url.netcraft;">Netcraft</ulink>
(see also <ulink url="&url.netcraft-survey;">Netcraft Web Server
Survey</ulink>) would be that PHP is in use on over 5,100,000
sites around the world. To put that in perspective, that is
slightly more sites than run Microsoft's IIS server on the Internet
(5.03 million).
</simpara>
<!--
<figure>
<title>NetCraft Webserver Survey</title>
<graphic fileref="&url.php.stats;"/>
</figure>
-->
</sect1>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
|