To start programming language PHP has installed several computer services, will allow the computer to translate language and view pages written in PHP. These services are necessary because – PHP is a server-side programming language, and these services are usually installed on real servers. Each service can be installed separately, but software called XAMPP can expedite our work. XAMPP is an open source software (freeware) with the versions that fit all operating systems, and between them Windows, Linux and – Mac OS.
The software installs a package of services that includes Apache HTTP Server, MySQL database, and translators (interpreters) for languages like PHP and Perl.
The installation process on Windows:
Step one – Download software
First, Download the software here (choose one version of Xampp For Windows).
Step Two – Installation
Once you have downloaded the Windows version, click and install the software on your computer.
Step Three – Run
After you have installed, click Start -> Programs -> xampp
Will open a window that allows you to turn on and off the various processes. Turn them all.
The installation process Macintosh (Mac):
First, Download the software here (choose one version of Xampp For Mac OS X) and install it on your PC.
Then drag the program icon and place it took place apps (applications).
That’s it! Now the software is installed at applications / xampp /.
Now press and start the program. You will see a window with three options: Apache and MySQL – FTP.Turn them all. It should look like this:
Using the virtual server XAMPP (true for all operating systems)
Now open the browser at the following address:
Choose the language you want, what will transfer you to the main page:
In Windows it will look like this:
There you will find all kinds of examples, and tools for working with databases, such as phpMyAdmin which we will learn later.
Use of the software is very simple: each file we create, we’ll keep it with the extension .php and pass it took place, meaning that application/xampp or C:\xampp\ on Windows.
I recommend that you create a new folder will be dedicated to your site. If we want to check the file we created, we will have to write his address in the address bar of our browser.
Clicking times the file will not trigger the file just open it with WordPad. PHP files work only through virtual server (or real server of course, you can pay for it through hosting companies engaged in).
For example, a file whose address is (Mac) application/xampp/new_file.php
The browser will be written like this:
Now you are ready to start learning programming with PHP. Enjoy!
One of the reasons that can cause the virtual server is not working, it is a conflict created between the two programs that use the same port (port). One common problem is a conflict with Skype (Skype) that uses port 80 for sending detailed data on both its main server.
XAMPP also Statistics uses port 80 by default. This can be changed by the main configuration file entry called: httpd.conf and is usually found at: xampp/xamppfiles/etc (sometimes Address changes, you should just do a search for the file).
Once you have found the file, open it with any text processing software, and look for the line: listen 80. The number 80 can be changed to any other number and thus avoid a collision with another program.
Notice that you can change the settings of Skype to not use port 80:
Walk to: Tools -> Advanced -> Connections and then remove the checkmark: Use Port 80 and 443.