Adding PHP to your HTML and CSS Blog

GeekThis remains completely ad-free with zero trackers for your convenience and privacy. If you would like to support the site, please consider giving a small contribution at Buy Me a Coffee.

In a previous video and post Code Blog in HTML and CSS, we worked on a HTML and CSS Blog. The blog was very basic. So in this video we are going to add PHP to the blog so posts will be loaded from a database. This means, instead of modifying the files of your website over and over again, you can insert a post into a database.

There are a few requirements you need for this tutorial. You need PHP, Apache or other web server software, MySQL and PHPMyAdmin if you are not sure how to code in SQL. These usually come with all hosting companies that you buy from. But if you wish to do this for free, you can download XAMPP or LAMP, there are other options.

Related Posts

Code Blog in HTML and CSS

Create a blog styled website using HTML and CSS.

Prevent Sending HTTP Referer Headers from Your Website

Learn how to prevent your site from sending HTTP referer headers to external websites that you link to with these three different methods.

PHP - Check if Production or Sandbox

Use PHP to check of your site is on your development server or uploaded to the production server.

Custom Style RSS Feed

Customize the look and feel of your WordPress RSS feed by adding a stylesheet to your RSS XML feed.