PHP Tutorial - Installation
PHP Tutorial - Installation
Necessary Setup
To begin working with php you must first have both of the following:
- Have PHP and MySQL installed on your own computer for developing and testing php projects.
- A web hosting account that supports the use of PHP web pages and grants you access to MySQL databases. If you do not have a host, but are interested in signing up for one, we recommend select hosting account in comlanka.com.
Installing PHP
For those who are experienced enough to do this yourself, simply head over to PHP.net - Downloads and download the most recent version of PHP.
However, if you are like most of us, you will most likely want to follow a guide to installing PHP onto your computer. These guides are kindly provided by PHP.net based on the operating system that you are using.
- PHP - Windows - Windows Installation Guide
- PHP - Mac - Mac Installation Guide
- PHP - Linux - Linux Installation Guide
Note : If you get comlanka.com web hosting account you need not do this step
Installing MySQL
Although MySQL is not absolutely necessary to use PHP, MySQL and PHP are wonderful complements to one another and some topics covered in this tutorial will require that you have MySQL access.
Download latest mysql database http://www.mysql.org and fallow tha installation guide
Note : If you get comlanka.com web hosting account you need not do this step
Testing
For testing purposes, insert the following code into a file and save the file as phpinfo.php to the Apache’s document root directory. This is the directory called htdocs, located in the Apache installation directory.
Note :In your hosting account put phpinfo.php file to the public_html or www directory
<? phpinfo(1) ?>