The PHP Installer
Before you begin: please make sure that you have a web server installed on your computer, and make sure that it is working.
1.) You can download the PHP installer from PHP.NET
2.) Once you download it, you need to unzip it.
3.) Next, run the executable file, and follow the instructions
4.) Enter your web server details when prompted so that it can configure your system
5.) When prompted, restart your system
It is a good idea to keep your PHP version up to date. Not only do newer versions of PHP include new features that might interest you, they also fix old bugs or improve security. It is always a safe bet to upgrade to the newest version of PHP.
If you already are running PHP on your computer but wish to upgrade to a newer version of PHP, you complete the same steps as you would to install. The PHP installer will read what is currently on your system, remove your old PHP version and install the new PHP version.
PHP.NET recommends that you upgrade your system in this manor as opposed to updating single files.
To test if PHP is running on your computer, you need to create a test file. The best thing to include in your test file is simply a phpinfo() function. Here is an example.
When you load your test file, you should see all the information about your PHP. If you see the code, then PHP is not active on your computers server, and may be configured wrong.
If PHP is working and you wish to change some of it's settings, you can do so by editing the php.ini file.
Be sure to keep a backup of this file incase anything should happen to it, because it is needed by PHP.
Congratulations, you are now running PHP on your PC!
Before you begin: please make sure that you have a web server installed on your computer, and make sure that it is working.
1.) You can download the PHP installer from PHP.NET
2.) Once you download it, you need to unzip it.
3.) Next, run the executable file, and follow the instructions
4.) Enter your web server details when prompted so that it can configure your system
5.) When prompted, restart your system
It is a good idea to keep your PHP version up to date. Not only do newer versions of PHP include new features that might interest you, they also fix old bugs or improve security. It is always a safe bet to upgrade to the newest version of PHP.
If you already are running PHP on your computer but wish to upgrade to a newer version of PHP, you complete the same steps as you would to install. The PHP installer will read what is currently on your system, remove your old PHP version and install the new PHP version.
PHP.NET recommends that you upgrade your system in this manor as opposed to updating single files.
To test if PHP is running on your computer, you need to create a test file. The best thing to include in your test file is simply a phpinfo() function. Here is an example.
When you load your test file, you should see all the information about your PHP. If you see the code, then PHP is not active on your computers server, and may be configured wrong.
If PHP is working and you wish to change some of it's settings, you can do so by editing the php.ini file.
Be sure to keep a backup of this file incase anything should happen to it, because it is needed by PHP.
Congratulations, you are now running PHP on your PC!
SHARE