Blog app: tags
Published May 1, 2016 at 6:05 pm. Tagged as CSSPHP
I've added a tagging system to my blog app: each post can be tagged in multiple categories. Browsing through a list of tagged items is also possible.
Blog app: full text search
Published April 29, 2016 at 6:10 am. Tagged as CSSPHP
I've opted for a separate search page instead of an all present search box. This is my first implementation of a full text search using MySql and the syntax proved to be quite a challange.
Blog app #4: the view
Published April 28, 2016 at 8:08 pm. Tagged as PHPHTML
In a model-view-controller concept, the view is the part that renders the HTML. To make this more flexible, I have built a very simple and fast templating system.
Blog app #3: the model
Published April 27, 2016 at 6:33 pm. Tagged as PHP
In a model-view-controller concept, the model is the part that handles stored data. In my case, I am using PDO to interact with a MySql database.
Blog app #2: the controller
Published April 26, 2016 at 6:57 pm. Tagged as PHP
In a model-view-controller concept, the controller is the part that handles user requests, instructs the model to update or retrieve data. When something has to be displayed, the controller handles the data to the view, which then renders it.
Blog app #1: the basics
Published April 25, 2016 at 8:09 pm. Tagged as PHP
Using the .htacces file to prevent directory listings, redirecting all requests to one .php file and setting expiration dates. Launching the blog app or its admin interface from the index.php file.
Nice dates with PHP revisted
Published April 20, 2016 at 8:34 pm. Tagged as PHP
MySql gives the posted date of the post back in this format: 2016-04-17 20:58:00. To display the date in a more readable format and to display a nice tear-off calender cartouche in lists, I now use the PHP date/time functions instead of string manipulation.
Nice dates with PHP
Published April 17, 2016 at 8:58 pm. Tagged as CSSPHP
MySql gives the posted date of the post back in this format: 2016-04-17 20:58:00. I want to display this date in a more human readable format. To emphasize that this is a daily web log, I also want to display a nice tear-off calender cartouche in lists.
A static site generator in PHP
Published April 15, 2016 at 2:00 pm. Tagged as GeneralPHP
Having a static site generator to manage a site has a lot of benefits. And you can make one from scratch in a few hours using PHP. I'll also explain how to make user friendly URLs using the .htaccess file.