chapters/intro.xml
ba36a88377878340feb08b36cdde88c26f34df6a
...
...
@@ -19,8 +19,7 @@
19
19
<info><title>An introductory example</title></info>
20
20
<programlisting role="php">
21
21
<![CDATA[
22
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
23
-
"http://www.w3.org/TR/html4/loose.dtd">
22
+
<!DOCTYPE html>
24
23
<html>
25
24
<head>
26
25
<title>Example</title>
...
...
@@ -56,9 +55,9 @@
56
55
way that users can tell what you have up your sleeve.
57
56
</para>
58
57
<para>
59
-
The best things in using PHP are that it is extremely simple
58
+
The best part about using PHP is that it is extremely simple
60
59
for a newcomer, but offers many advanced features for
61
-
a professional programmer. Don't be afraid reading the long
60
+
a professional programmer. Don't be afraid to read the long
62
61
list of PHP's features. You can jump in, in a short time, and
63
62
start writing simple scripts in a few hours.
64
63
</para>
...
...
@@ -86,7 +85,7 @@
86
85
<simpara>
87
86
Server-side scripting. This is the most traditional
88
87
and main target field for PHP. You need three things
89
-
to make this work. The PHP parser (CGI or server
88
+
to make this work: the PHP parser (CGI or server
90
89
module), a web server and a web browser. You need to
91
90
run the web server, with a connected PHP installation.
92
91
You can access the PHP program output with a web browser,
...
...
@@ -130,8 +129,8 @@
130
129
<para>
131
130
PHP can be <link linkend="install">used</link> on all major operating systems, including
132
131
Linux, many Unix variants (including HP-UX, Solaris and OpenBSD),
133
-
Microsoft Windows, Mac OS X, RISC OS, and probably others.
134
-
PHP has also support for most of the web servers today. This
132
+
Microsoft Windows, macOS, RISC OS, and probably others.
133
+
PHP also has support for most of the web servers today. This
135
134
includes Apache, IIS, and many others. And this includes any
136
135
web server that can utilize the FastCGI PHP binary, like lighttpd
137
136
and nginx. PHP works as either a module, or as a CGI processor.
...
...
@@ -139,17 +138,16 @@
139
138
<para>
140
139
So with PHP, you have the freedom of choosing an operating
141
140
system and a web server. Furthermore, you also have the choice
142
-
of using procedural programming or object oriented
141
+
of using procedural programming or object-oriented
143
142
programming (OOP), or a mixture of them both.
144
143
</para>
145
144
<para>
146
-
With PHP you are not limited to output HTML. PHP's abilities
147
-
includes outputting images, PDF files and even Flash movies
148
-
(using libswf and Ming) generated on the fly. You can also
149
-
output easily any text, such as XHTML and any other XML file.
150
-
PHP can autogenerate these files, and save them in the file
151
-
system, instead of printing it out, forming a server-side
152
-
cache for your dynamic content.
145
+
With PHP you are not limited to output HTML. PHP's abilities include
146
+
outputting rich file types, such as images or PDF files, encrypting data,
147
+
and sending emails. You can also output easily any text, such as JSON
148
+
or XML. PHP can autogenerate these files, and save them in the
149
+
file system, instead of printing it out, forming a server-side cache for
150
+
your dynamic content.
153
151
</para>
154
152
<para>
155
153
One of the strongest and most significant features in PHP is its
...
...
@@ -183,7 +181,7 @@
183
181
<para>
184
182
And many other interesting extensions exist, which are categorized both
185
183
<link linkend="extensions">alphabetically</link> and by <link linkend="funcref">category</link>.
186
-
And there are additional PECL extensions that may or may not be documented
184
+
And there are additional <link linkend="install.pecl.intro">PECL extensions</link> that may or may not be documented
187
185
within the PHP manual itself, like <link xlink:href="&url.xdebug;">XDebug</link>.
188
186
</para>
189
187
<para>
190
188