PHP Installation Considerations

Home >>Installation of PHP  >>PHP Installation Considerations


Before starting the installation, first we must know where PHP can be used. There are three main areas where we can use PHP, 


  •  Websites and web applications
  •  Command line scripting. 
  •  Desktop (GUI) applications. 


        In order to execute the web application, we need three components: PHP itself, a web server and a web browser. We probably already have a web browser, and depending on the installed operating system , we may also have a web server (e.g. Apache on Linux and MacOS X; IIS on Windows). We may also rent webspace at a company. This way, we don't need to set up anything on our own, only write your PHP scripts, upload it to the server you rent, and see the results in the browser. 

         In case of setting up the server and PHP on our own, we 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 web server, we can always use it as a CGI or FastCGI processor. This means we set up the server to use the CGI executable of PHP to process all PHP file requests on the server. 
        If we are also interested to use PHP for command line scripting (e.g. write scripts autogenerating some images for us offline, or processing text files depending on some arguments we pass to them), we always need the command line executable. In this case, we don't need server and browser. With PHP we can also write desktop GUI applications using the PHP-GTK extension. This is a completely different approach than writing web pages, as we do not output any HTML, but manage windows and objects within them. 
       From now on, this section deals with setting up PHP for web servers on Unix and Windows with server module interfaces and CGI executables. PHP source code and binary distributions for Windows can be found at Download.

For more info, click here

Comments

Popular posts from this blog

Float

FastCGI Process Manager

Boolean Type