Posts

Zend PHP 7 Certification – Input/Output – Streams

This post covers the Streams section of the Input/Output chapter when studying for the Zend PHP 7 Certification.
Streams are a way of generalising file, network, data compression, and other operations which share a common set of functions and uses.
A stream is usually referenced as scheme://target where scheme is the wrapper or protocol ...

Zend PHP 7 Certification – Input/Output – Filesystem Functions

This post covers the Filesystem Functions section of the Input/Output chapter when studying for the Zend PHP 7 Certification.
PHP provides a number of filesystem functions that help read and write file data. Some of those functions can be seen and described in more details below.
The fopen() function opens a file or a URL. ...

Zend PHP 7 Certification – Input/Output – Files

This post covers the Files section of the Input/Output chapter when studying for the Zend PHP 7 Certification.
PHP has several functions for creating, reading, uploading, and editing files.
The two main types of functions that PHP use are listed below.

f* – Functions that work with a file resource. For example, fopen().
file* ...

Link Magento 2 Guest Orders to Customer Accounts

In newer Magento versions, there is the ability for customers to create an account after they have placed an order as a guest. This allows the customer the ability to track their order. There might be times where customers have placed orders in the past as guests and have only recently registered an account with ...

Adding Excerpts to WordPress Posts and Pages

When using WordPress and managing your content, you have the ability to go about adding excerpts to WordPress posts and pages.
To add excerpts to WordPress posts is easy. Although the Excerpt box is hidden by default, you can make the box visible by expanding the Screen Options section.

Unfortunately, adding excerpts to page ...

WordPress Security Tips and Tricks

WordPress is one of the most common CMS platforms website users use to manage their content. As a result, websites on WordPress are often the target of various web attacks. Below are some WordPress security tips and tricks that go a long way to ensuring your website is protected.
Don’t create ‘common’ usernames
Starting off ...

Useful Command Line Commands

Below represents a list of useful command line commands and tricks that you may not know about. Some of them may even turn out to increase your efficiency as a command line user.
Returning to the previous directory
When using the cd command, you can use the - flag to return you to the previous ...

Create a Shell Script to check a Git Repository Status

This post will describe how to create a shell script to check a git repository status every so often to check for changes.
Why would you write something like this? Whilst Git is primarily used to version control files and improve developer’s and development team’s workflow, it can also be used as a security measure ...

Zend PHP 7 Certification – Databases – PDO

This post covers the PDO section of the Databases chapter when studying for the Zend PHP 7 Certification.
The PHP Data Objects (PDO) extension assists users accessing databases in PHP. PDO provides a data-access abstraction layer which means regardless of which database you’re using, you can use the same functions to issue queries and fetch ...

Zend PHP 7 Certification – Databases – Transactions

This post covers the Transactions section of the Databases chapter when studying for the Zend PHP 7 Certification.
Transactions in PDO can be explained as: Any work carried out in a transaction is guaranteed to be applied to the database safely and without interference from other connections when it is committed. Transactional work can also ...