PhP Guide

Once you’ve learned XHTML and CSS, it’s time to start thinking about switching from static HTML pages to dynamic pages with the PHP program language. Here you will get a short and easy but useful introduction that will greatly facilitate your website building. Read the articles – you need the knowledge!

What is PHP and how does it work?

PHP is an open source, an open source program where everyone has the opportunity to contribute to the development. It is used extensively on the web to create dynamic web pages and is easy to learn. It’s also free. Unlike XHTML and CSS, which is markup language and not a programming language, PHP is a programming language that allows logical operations. This means that you can use the language to solve various problems and tasks if you learn the syntax, ie the way the language communicates.

Dynamic web pages

With php, you expand your ability to control your website. For example, you can create login features, management systems, banner rotations for advertising, newsletters, and customize content for your visitors. The invention domain simply gets more space. Updating a dynamic website is much easier than updating a static website.

This is nothing is by no means an exhaustive guide. Instead, it focuses on giving you a little aha experience and understanding of how things work. The idea is that you will learn the simplest basics within PHP and then research on your own.

Include a page menu

This guide gives you the solution to a very common problem: to update the menu on your entire site with a simple change in a single file. It goes without saying that you would rather update a small file that is included on all web pages than sitting and piling with all pages on a larger website. Do not learn this so you waste a lot of time.

Can you skip XHTML and go to PHP directly?

No. You can not do that. XHTML is used everywhere, even on dynamic sites. XHTML stands for the structure of the site. For example, always use the <p> tag to mark something like a paragraph, <h1> to highlight a header, and so on. You do not get XHTML even if you become a phonebook on PHP.

What does PHP mean?

PHP stands for “PHP: Hypertext Preprocessor”. The abbreviation refers to itself in the actual name and is a so-called recursive acronym which makes the meaning a bit fuzzy. See it as unnecessary knowing. A PHP file should always be saved with “.php” extension (without quotes) to run.