If your server does not support PHP, you must:
- install a web server(wamp,xamp,appache)
- install PHP
- install a database, such as MySQL
- Websites and web applications (server-side scripting)
- Command line scripting
- Desktop (GUI) applications
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.
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.
Comments