How can I sort this array by the value of the "order" key? Even though the values are currently sequential, they will not always be.
Sometimes you might want to redirect your visitors to a new URL address. This article will show you how to make a PHP redirect using the 301 "moved permanently" redirection. This is the one you should use as it is the most search engine friendly. Like the name suggests, PHP redirect tells the browser (or […]
The main features typically are: REST Routing Use different HTTP methods for same URL’s to determine different types of action / request Support dynamic URL segments Provide the capability for reverse routing; creating the destination URL from an array of route variables SEO friendly URL’s using a .htaccess to route all URL’s into your class
When you’re emailing or uploading larger files, it always makes sense to compress them first. This decreases file size and also helps avoid file corruption during transfer. The most common compressed file you will encounter is the zip file, since most operating systems come with a basic utility to quickly zip and unzip files. Creating […]
As I caught myself in process of writing PHP "log" function several times I have finally decided to create a simple Logging PHP class. After Logging class initialization, first call of lwrite method will open log file implicitly and write line to the file. Every other lwrite will use already opened file pointer until closing […]