Tools Blog Learn Quizzes Smile API Log In / Sign Up
Tools Blog Learn Quizzes Smile API Log In / Sign Up
We have updated our privacy policy to let you know that we use cookies to personalise content and ads. We also use cookies to analyse our traffic and we share information about your use of our site and application with our advertising and analytics partners. By using this website or our application you agree to our use of cookies. Learn more about the way this website uses cookies or remove this message.

Implement a "sounds like" search in PHP

January 13, 2015 Difficulty: 25 / 50

In this tutorial I will show you how to use two of the lesser known PHP functions (metaphone($str) and levenshtein($str1, $str2)) to implement a "sounds like" search using PHP. By putting these two functions to good use, you will get exceptional results when matching phrases that contain spelling mistakes or simply 'sound similar'.

Read Full Article...

3 PHP loops gotchas

December 19, 2014 Difficulty: 20 / 50

This post is to give you a few tips that you should remember when dealing with loops in PHP. You will learn why it is bad practice to initialize variables inside a loop, why a do-while can cause headaches if one doesn't understand it properly, when for loops should replace foreach and some more interesting loop gotchas.

Read Full Article...

How to modify MARC records with File_MARC

November 25, 2014 Difficulty: 25 / 50

One of my clients, a children e-books publisher, recently asked if I can help him modify MARC records for their library. As I had no idea what a MARC record is I started off here and soon I found that there's a PEAR package that can be used to read and write MARC files.

I will not go into what a MARC record is and what it is used for because if you are reading this article you probably already know that. In this article I will focus on how one can use the "File_MARC" PEAR package to modify/update the fields in a MARC file.

Read Full Article...

Please don't...

November 4, 2014 Difficulty: 20 / 50
denied sign
In this article I will teach you how to avoid hard-coding paths and URLs inside your PHP code and also how to disallow direct access to your code files.Read Full Article...

5 jQuery performance tips

October 21, 2014 Difficulty: 30 / 50
jquery speed

In today's tutorial I will try to sum up a few things you should take into consideration when writing your jQuery code to avoid performance issues. Some of the following tips will apply to everyone... whether you are a jQuery fan or prefer vanilla flavor.

Read Full Article...

1 2 3 4 5 6 7 8 9 10