Home > Tips and Tricks

Tips and Tricks

Collection of essential tips for web development and designing

Sub categories:

Comparing dates in PHP

167 views | PHP | No Response
Comparing dates in PHP

PHP’s date function strtotime () solves the problem of comparing dates and to check whether the user entered date/custom date is expired or not. Inorder to check whether, the custom date is expired or not, we need to do the following steps Get today’s date. Get the date to be checked. Convert the dates to [...]

Debugging PHP

248 views | PHP | No Response
Debugging PHP

Some useful techniques in debugging PHP are mentioned below Article: http://dev.piwik.org/trac/wiki/HowToSetupDevelopmentEnvironmentWindows Firefox addon – Firephp PHP Extension – Xdebug Using var_dump() <?php var_dump(__FILE__, __LINE__, $_REQUEST); ?> phpEd Zend Studio (5.5) with Zend Platform Using, print_r and echo echo “<pre>”;print_r();echo “</pre>”;

Accessing newly created elements using .live() function in jQuery

509 views | jQuery | No Response
Accessing newly created elements using .live() function in jQuery

The .click() and similar functions like .hover() allows to access the elements which are already present. But elements created using .append(), .after(), .before() etc are newly inserted into the page. These newly created elements cannot be accessed using the functions .click(), .hover() as they target only the already present elements. Hence, to resolve this problem [...]

Get more results from a specific site using “AT” operator

437 views | Google | No Response
Get more results from a specific site using

The site: operator for Google search is pretty useful in getting search results from a targeted site. But it is pretty painful to type the operator site:example.com search term. Recently Google introduced the the "AT" operator which is very useful to get more results from a spefic site. This works similar to the site: operator, [...]

Encoding email address in wordpress posts

305 views | Wordpress | 1 Response
Encoding email address in wordpress posts

Email address are frequently used in each and every posts at the bottom or at the top for contacting the post’s author. But those email addresses get spammed more. Replacements like using images instead of directly typing the addresses are also appreciable. But they can be painful inserting the images directly in each and every [...]

Adding watermarks to images with PHP

194 views | PHP | 1 Response
Adding watermarks to images with PHP

Watermarks play a very important role in sections of copyright and also in site promotions. But adding custom watermarks to each and every image in site using a Photo-editing software will be painful sometimes. But for regular blogging sites with more images for a single post will definitely be painful. But, adding  watermarks to images [...]