File: intro.xml

package info (click to toggle)
php-doc 20100521-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 59,992 kB
  • ctags: 4,085
  • sloc: xml: 796,833; php: 21,338; cpp: 500; sh: 117; makefile: 58; awk: 28
file content (98 lines) | stat: -rw-r--r-- 3,964 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 297028 $ -->
  <chapter xml:id="install.general" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
   <title>General Installation Considerations</title>
   <para>
    Before starting the installation, first you need to know what do you
    want to use PHP for. There are three main fields you
    can use PHP, as described in the
    <link linkend="intro-whatcando">What can PHP do?</link>
    section:
    <itemizedlist>
     <listitem><simpara>Websites and web applications (server-side scripting)</simpara></listitem>
     <listitem><simpara>Command line scripting</simpara></listitem>
     <listitem><simpara>Desktop (GUI) applications</simpara></listitem>
    </itemizedlist>
   </para>
   <para>
    For the first and most common form, you need three things:
    PHP itself, a web server and a web browser. You
    probably already have a web browser, and depending on
    your operating system setup, you may also have a web
    server (e.g. Apache on Linux and MacOS X; IIS on Windows).
    You may also rent webspace at a company. This way, you
    don't need to set up anything on your own, only write
    your PHP scripts, upload it to the server you rent, and
    see the results in your browser. 
   </para>
   <para>
    In case of setting up the server and PHP on your own, you have
    two choices for the method of connecting PHP to the
    server. For many servers PHP has a direct module
    interface (also called SAPI). These servers include
    Apache, Microsoft Internet Information Server,
    Netscape and iPlanet servers. Many other servers
    have support for ISAPI, the Microsoft module
    interface (OmniHTTPd for example). If PHP has no
    module support for your web server, you can always
    use it as a CGI or FastCGI processor. This means you set up
    your server to use the CGI executable of
    PHP to process all PHP file requests on the server.
   </para>
   <para>
    If you are also interested to use PHP for command line
    scripting (e.g. write scripts autogenerating some images
    for you offline, or processing text files depending
    on some arguments you pass to them), you always need
    the command line executable. For more information, read
    the section about <link linkend="features.commandline">writing
    command line PHP applications</link>. In this case,
    you need no server and no browser.
   </para>
   <para>
    With PHP you can also write desktop GUI applications
    using the PHP-GTK extension. This is a completely
    different approach than writing web pages, as you
    do not output any HTML, but manage windows and objects
    within them. For more information about PHP-GTK, please
    <link xlink:href="&url.php.gtk;">visit the site dedicated to
    this extension</link>. PHP-GTK is not included in the
    official PHP distribution.
   </para>
   <para>
    From now on, this section deals with setting up PHP
    for web servers on Unix and Windows with server module
    interfaces and CGI executables. You will also find
    information on the command line executable in the
    following sections.
   </para>
   <para>
    PHP source code and binary distributions for Windows can be
    found at
    <link xlink:href="&url.php.downloads;">&url.php.downloads;</link>.
    We recommend you to choose a
    <link xlink:href="&url.mirrors;">mirror</link> nearest
    to you for downloading the distributions.
   </para>
  </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:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->