Servers
PHP is a server-side technology. Therefore, you need to have a server to run PHP. But it doesn't need to cost you anything to make this upgrade and there are several options for doing so.
Since you ultimately only need to choose one option, this lesson is divided into two parts. First comes a little introduction on the different options (just choose the one that suits you best).
Option 1: Website on a hosted server
You can choose to have a website on a host that supports PHP.
Test whether your host supports PHP
You can test whether your host supports PHP by following the steps below:
- Create a file in Notepad (or similar text editor) named test.php (note that the file extension must be ".php" instead of ".htm").
- Insert the following code in the file:
<?php echo "Hello World!"; ?>
- Upload the file to your web host.
- Open the file in your browser.
- If the browser writes "Hello World!" your web host supports PHP and you are ready to go. Otherwise contact your hosting provider for more information.
That's it! Now are you ready to code your first PHP page.
If you don't already have a website on hosted server you can create a free account on 000webhost.com which supports PHP.
Option 2: Install PHP on your computer
It's no walk in the park to install PHP on your computer. This option is only recommend for experienced computer users, but it can obviously be done. Here are links to downloads and installtion guides:


Posted in: 

0 Post Your questions:
Post a Comment