Skip to main content

PHP on Your PC

If  your server does not support PHP, you must:
  1. install a web server(wamp,xamp,appache)
  2. install PHP
  3. install a database, such as MySQL
Before starting the installation, first you need to know what do you want to use PHP for.  
  1. Websites and web applications (server-side scripting)
  2. Command line scripting
  3. 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

Popular posts from this blog

How can make a comment in php?

Comments: In PHP code, Comment is a line that is not executed but it helps to other to understand what are you doing in program and why you are using the comment line or it's work as a  reminder to know what you did in the program last time.      But there is many types of comment line like single line and multi line comments:  Example for Single line comment:   <?php     echo "<p>Hello my Friends</p>";   //This is a single-line comment   echo "<p>You will be a good please read all my blogs</p>"; ?> Here is another exaple of Multiple line comment "  example : <!--          --> <?php      <!--   echo "<p>Hello my Friends</p>";     echo "<p>Hello my Friends</p>"; -->        echo "<p>Hello my Friends</p>";     echo "<p>Hello my Friend...

Apache Hadoop

What Is Apache Hadoop? The Apache   Hadoop project develops open-source software for reliable, scalable, distributed computing. The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect and handle failures at the application layer, so delivering a highly-available service on top of a cluster of computers, each of which may be prone to failures. The project includes these modules: ·          Hadoop Common : The common utilities that support the other Hadoop modules. ·          Hadoop Distributed File System (HDFS) : A distributed file system that provides high-thr...

TWO DIMENSIONAL DATA IN TABULAOR FORM

Now Friends if your concept about array is cleared  so now  we can try to excute this 2D array in tabular form , that we clearly  understand  how data stores in an array  This is very easy concept I am sharing  to understand  how can we store the data in 2D array . For example:  <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>2D array</title> </head> <body> <?php error_reporting(0); $x=array( data_1=>array('name'=>'suraj kumar', 'dob'=> '20.10.1980', 'age'=> '30','salary'=>50000), data_2=>array('name'=>'Amit kumar', 'dob'=> '22.1.1990', 'age'=> '30','salary'=>40000), data_3=>array('name'=>'pankaj kumar', 'dob'=> '02.12.1990', 'age'=> '30','salary'=>20000), data...