How to deal with 404 error pages, best practices

Best Practices for Error Pages What mean 404s? Wen someone requests yoursite.com/tftfgfgvt URL that doesn’t actually exist, most of the time, especially when using a framework the server will return an eror 404 page not found. In short, the server cannot find the file that the user is looking for. Where the 404 error pages …

PHP useful links

Here I will update the most interesting and useful links which I found related to php. I encourage you to fill out this list posting your favorite php links in your comments. HTTP Status Code Checker Bulk url http status checker – check status codes, response headers, and redirect chains. Web-sniffer.net – View HTTP Request …

About Codeigniter, Tips & Tricks

Why to use CodeIgniter? CodeIgniter is a php framework, with a small footprint, based on model-view-controller(MVC) architecture, but very flexible and permissive with regard to organizing the code. Codeigniter tips & tricks Create a custom Codeigniter 404 page not found As I explained in his articol, How to deal with 404 error pages, best practices …

Smart Search for PHP

Creating Autocomplete or Search Suggestion Functionality with PHP What is Fuzzy matching Fuzzy matching treats two words that are “fuzzily” similar as if they were the same word. In 1965, Vladimir Levenshtein developed the Levenshtein distance, which measures the number of single-character edits required to transform one word into the other. He proposed three types …

PHP dates and times

time() time() function returns the current time in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) Epoch time = Unix timestamp The valid range of a timestamp correspond to the minimum and maximum values for a 32-bit signed integer, for example zero = January 1 1970 00:00:00 32bit = timestamp …

About Prestashop, Tips & Tricks

About prestashop PrestaShop’s technical architecture PrestaShop is based on a 3-tier architecture, using same principle as the Model > View > Controller (MVC) architecture, only in a simpler and more accessible way: Object/data. Database access is controlled through files in the “classes” folder Data control. User-provided content is controlled by files in the root folder. …

How to switch back to old classic editor on WordPress

The latest version of WordPress 5.0, have Gutenberg enabled. Personally, I did not use it the new Gutenberg editor, so I don’t have much to say about it. Because I got used to the old editor, the classic one, in this post I will show solutions to revert back to the previous WordPress editor. Support …

Adwords, how to show location extensions from Google my business

Why to use location extensions in your ads? Locaion extensions are very good to use because will extend your ads with your address, a map to your location, or the distance to your business. Also location extensions will include your phone number or call button so that users can easily call your business. Your ads …

PHP array functions

List of functions that work with php arrays. array_shift() array_shift() – Shifts the first value of the array off and returns it, shortening the array by one element and moving everything down. All numerical array keys will be modified to start counting from zero while literal keys won’t be touched. array_pop() array_pop() – pop the …