source: www/manuals/PHP_manual/zend.overview.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 5.3 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>Overview</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="Extending PHP 4.0"
13HREF="zend.html"><LINK
14REL="PREVIOUS"
15TITLE="Extending PHP 4.0"
16HREF="zend.html"><LINK
17REL="NEXT"
18TITLE="Extension Possibilities"
19HREF="zend.possibilities.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="chapter"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="zend.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="zend.possibilities.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><DIV
73CLASS="chapter"
74><H1
75><A
76NAME="zend.overview"
77>Kapitola 24. Overview</A
78></H1
79><DIV
80CLASS="TOC"
81><DL
82><DT
83><B
84>Obsah</B
85></DT
86><DT
87><A
88HREF="zend.overview.html#zend.overview.whatisit"
89>What Is Zend? and What Is PHP?</A
90></DT
91></DL
92></DIV
93><P
94>&#13; "Extending PHP" is easier said than done. PHP has evolved to a
95 full-fledged tool consisting of a few megabytes of source code,
96 and to hack a system like this quite a few things have to be
97 learned and considered. When structuring this chapter, we finally
98 decided on the "learn by doing" approach. This is not the most
99 scientific and professional approach, but the method that's the
100 most fun and gives the best end results. In the following
101 sections, you'll learn quickly how to get the most basic
102 extensions to work almost instantly. After that, you'll learn
103 about Zend's advanced API functionality. The alternative would
104 have been to try to impart the functionality, design, tips,
105 tricks, etc. as a whole, all at once, thus giving a complete look
106 at the big picture before doing anything practical. Although this
107 is the "better" method, as no dirty hacks have to be made, it can
108 be very frustrating as well as energy- and time-consuming, which
109 is why we've decided on the direct approach.
110 </P
111><P
112>&#13; Note that even though this chapter tries to impart as much
113 knowledge as possible about the inner workings of PHP, it's
114 impossible to really give a complete guide to extending PHP that
115 works 100% of the time in all cases. PHP is such a huge and
116 complex package that its inner workings can only be understood if
117 you make yourself familiar with it by practicing, so we encourage
118 you to work with the source.
119 </P
120><DIV
121CLASS="section"
122><H1
123CLASS="section"
124><A
125NAME="zend.overview.whatisit"
126></A
127>What Is Zend? and What Is PHP?</H1
128><P
129>&#13; The name <SPAN
130CLASS="emphasis"
131><I
132CLASS="emphasis"
133>Zend</I
134></SPAN
135> refers to the language engine,
136 PHP's core. The term <SPAN
137CLASS="emphasis"
138><I
139CLASS="emphasis"
140>PHP</I
141></SPAN
142> refers to the
143 complete system as it appears from the outside. This might sound
144 a bit confusing at first, but it's not that complicated (see
145 <A
146HREF="zend.overview.html#fig.internal-struct"
147>24-1</A
148>). To implement a Web script interpreter, you need
149 three parts:
150 <P
151></P
152><OL
153TYPE="1"
154><LI
155><P
156>&#13; The <SPAN
157CLASS="emphasis"
158><I
159CLASS="emphasis"
160>interpreter</I
161></SPAN
162> part analyzes the input
163 code, translates it, and executes it.
164 </P
165></LI
166><LI
167><P
168>&#13; The <SPAN
169CLASS="emphasis"
170><I
171CLASS="emphasis"
172>functionality</I
173></SPAN
174> part implements the
175 functionality of the language (its functions, etc.).
176 </P
177></LI
178><LI
179><P
180>&#13; The <SPAN
181CLASS="emphasis"
182><I
183CLASS="emphasis"
184>interface</I
185></SPAN
186> part talks to the Web
187 server, etc.
188 </P
189></LI
190></OL
191>
192 Zend takes part 1 completely and a bit of part 2; PHP takes parts
193 2 and 3. Together they form the complete PHP package. Zend itself
194 really forms only the language core, implementing PHP at its very
195 basics with some predefined functions. PHP contains all the
196 modules that actually create the language's outstanding
197 capabilities.
198 <DIV
199CLASS="figure"
200><A
201NAME="fig.internal-struct"
202></A
203><P
204><B
205>Obrázek 24-1. The internal structure of PHP.</B
206></P
207><P
208><IMG
209SRC="figures/Extending_Zend_1_PHPs_internal_structure.png"></P
210></DIV
211>
212 </P
213><P
214>&#13; The following sections discuss where PHP can be extended and how
215 it's done.
216 </P
217></DIV
218></DIV
219><DIV
220CLASS="NAVFOOTER"
221><HR
222ALIGN="LEFT"
223WIDTH="100%"><TABLE
224SUMMARY="Footer navigation table"
225WIDTH="100%"
226BORDER="0"
227CELLPADDING="0"
228CELLSPACING="0"
229><TR
230><TD
231WIDTH="33%"
232ALIGN="left"
233VALIGN="top"
234><A
235HREF="zend.html"
236ACCESSKEY="P"
237>Pøedcházející</A
238></TD
239><TD
240WIDTH="34%"
241ALIGN="center"
242VALIGN="top"
243><A
244HREF="index.html"
245ACCESSKEY="H"
246>Domù</A
247></TD
248><TD
249WIDTH="33%"
250ALIGN="right"
251VALIGN="top"
252><A
253HREF="zend.possibilities.html"
254ACCESSKEY="N"
255>Dal¹í</A
256></TD
257></TR
258><TR
259><TD
260WIDTH="33%"
261ALIGN="left"
262VALIGN="top"
263>Extending PHP 4.0</TD
264><TD
265WIDTH="34%"
266ALIGN="center"
267VALIGN="top"
268><A
269HREF="zend.html"
270ACCESSKEY="U"
271>Nahoru</A
272></TD
273><TD
274WIDTH="33%"
275ALIGN="right"
276VALIGN="top"
277>Extension Possibilities</TD
278></TR
279></TABLE
280></DIV
281></BODY
282></HTML
283>
Note: See TracBrowser for help on using the repository browser.