Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 2966

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>Installation</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Getting Started"
HREF="getting-started.html"><LINK
REL="PREVIOUS"
TITLE="What's next?"
HREF="tutorial.whatsnext.html"><LINK
REL="NEXT"
TITLE="Unix/HP-UX installs"
HREF="install.hpux.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="chapter"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="tutorial.whatsnext.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="install.hpux.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="chapter"
><H1
><A
NAME="installation"
>Chapter 3. Installation</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="installation.html#install.general"
>General Installation Considerations</A
></DT
><DT
><A
HREF="install.hpux.html"
>Unix/HP-UX installs</A
></DT
><DT
><A
HREF="install.linux.html"
>Unix/Linux installs</A
></DT
><DT
><A
HREF="install.macosx.html"
>Unix/Mac OS X installs</A
></DT
><DT
><A
HREF="install.openbsd.html"
>Unix/OpenBSD installs</A
></DT
><DT
><A
HREF="install.solaris.html"
>Unix/Solaris installs</A
></DT
><DT
><A
HREF="install.unix.html"
>Installation on UNIX systems</A
></DT
><DT
><A
HREF="install.windows.html"
>Installation on Windows systems</A
></DT
><DT
><A
HREF="install.commandline.html"
>Servers-CGI/Commandline</A
></DT
><DT
><A
HREF="install.apache.html"
>Servers-Apache</A
></DT
><DT
><A
HREF="install.apache2.html"
>Servers-Apache 2.0</A
></DT
><DT
><A
HREF="install.caudium.html"
>Servers-Caudium</A
></DT
><DT
><A
HREF="install.fhttpd.html"
>Servers-fhttpd</A
></DT
><DT
><A
HREF="install.iis.html"
>Servers-IIS/PWS</A
></DT
><DT
><A
HREF="install.netscape-enterprise.html"
>Servers-Netscape and iPlanet</A
></DT
><DT
><A
HREF="install.omnihttpd.html"
>Servers-OmniHTTPd Server</A
></DT
><DT
><A
HREF="install.oreilly.html"
>Servers-Oreilly Website Pro</A
></DT
><DT
><A
HREF="install.sambar.html"
>Servers-Sambar</A
></DT
><DT
><A
HREF="install.xitami.html"
>Servers-Xitami</A
></DT
><DT
><A
HREF="install.otherhttpd.html"
>Servers-Other web servers</A
></DT
><DT
><A
HREF="install.problems.html"
>Problems?</A
></DT
><DT
><A
HREF="install.configure.html"
>Complete list of configure options</A
></DT
></DL
></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="install.general"
></A
>General Installation Considerations</H1
><P
>&#13;    Before installing 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
    <A
HREF="intro-whatcando.html"
>What can PHP do?</A
>
    section:
    <P
></P
><UL
><LI
><P
>Server-side scripting</P
></LI
><LI
><P
>Command line scripting</P
></LI
><LI
><P
>Client-side GUI applications</P
></LI
></UL
>
   </P
><P
>&#13;    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 (eg. Apache on Linux or 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. 
   </P
><P
>&#13;    While 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 processor. This means you set up
    your server to use the command line executable of
    PHP (<TT
CLASS="filename"
>php.exe</TT
> on Windows) to
    process all PHP file requests on the server.
   </P
><P
>&#13;    If you are also interested to use PHP for command line
    scripting (eg. 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 <A
HREF="features.commandline.html"
>writing
    command line PHP applications</A
>. In this case,
    you need no server and no browser.
   </P
><P
>&#13;    With PHP you can also write client side 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
    <A
HREF="http://gtk.php.net/"
TARGET="_top"
>visit the site dedicated to
    this extension</A
>. PHP-GTK is not included in the
    official PHP distribution.
   </P
><P
>&#13;    From now on, this section deals with setting up PHP
    for web servers on Unix and Windows with server module
    interfaces and CGI executables.
   </P
><P
>&#13;    Downloading PHP, the source code, and binary
    distributions for Windows can be found at
    <A
HREF="http://www.php.net/"
TARGET="_top"
>http://www.php.net/</A
>.
    We recommend you to choose a
    <A
HREF="http://www.php.net/mirrors.php"
TARGET="_top"
>mirror</A
> nearest
    to you for downloading the distributions.
   </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="tutorial.whatsnext.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="install.hpux.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>What's next?</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="getting-started.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Unix/HP-UX installs</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>