PHP Tutorial: Basic PHP

Never heard of PHP? You don’t know what you’re missing! Here how to start a site with (or convert a site in) PHP.

What you need:

PHP enabled: you need to be hosted or have a domain on a server which supports PHP, there are some free hosts which offer php but I’ve never tried them.

From HTML to PHP:

If you have already a site in HTML, first you need to change .html at the end of all your pages and write .php. If you’re starting from scratch, lucky you! You don’t need to change anything but create pages with .php at the end, meaning everytime you save a page, save it as .php and not .html or .htm.

Now we have to start dividing our pages: creating header.php, namepage.php and footer.php.

Continue reading “PHP Tutorial: Basic PHP”