Adding PHP to your HTML and CSS Blog

GeekThis happily runs on Vultr. Get $300 of free hosting credits to try out their cloud compute, kubernetes engine, or managed databases. Try Vultr today to claim your free $300.

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.