Category

PHP

Category

Setting up a blog is a great way to express yourself as a person and as a writer. A blog can provide you with an audience for your thoughts and experiences, and can also be a great way to boost interest in a business, especially if you are a sole trader. Some people even make money from their blogs through advertisement. However, a blog can only be successful if it is engaging enough to attract…

The performance of your website is an important metric to track. There are a lot of things that depend on how well your site performs, including the site’s SEO performance, user experience, and its future success. Needless to say, taking steps to improve site performance is not only necessary, but also very important. The big question is, where do you start? There are so many things you can do to improve your site’s performance. We…

Welcome to the second part of my tutorial on how to create a WordPress HTML5 template from an existing website. Be sure to read the first part before continuing here.

We have created a new HTML5 WordPress template that currently displays our home page including a menu, that can be customized through WordPress and three new posts for our slider content boxes. The next step is to create new layouts for posts and pages. As explained in the previous part of this tutorial the navigation items “About”, “Contact” and “Portfolio” would link to pages while the “Read more” links would rather link to posts.

In this tutorial we will take the responsive website we have built in the previous tutorials and implement it into Wordpress. Wordpress is a web blog system which was originally created to be able to easily write flexible and adaptable blog posts. In the course of years the range of functions enlarged more and more so that we can now use Wordpress not only for blogs but also as a Content Management System for “normal”…

In PHP 4 error handling in functions and methods was returned by the return command. Let´s say we would like to connect to a database via MySQLi inside a method or function. If the connection fails an error message and the error code should be displayed. In PHP 4 the error handling would have looked like this: function connect_to_mysql() {$mysqli = @new mysqli(‘localhost’, ‘username’, ‘password’, ‘db_name’); if ($mysqli->connect_errno) { return false;} return true;} To find…