Here is a function I use from time to time in my code which I thought I should share. It allows you to quickly shorten URL’s via 6 popular URL shortening websites.
One functions I wish I had known about when i start learned PHP is the realpath() function. Pretty much what it does is take symbolic link (such as ‘../’ or ‘/’) and returns a canonicalized absolute link (like ‘/home/public_html/folder’). Here is an example of it in action:
<?php
echo realpath('../');
// Would return: /home/mike/www/blogposts
?>
Recently Google Announced a new exciting product called Google Chrome Frame. Which is an add-on for Internet Explorer which offers Internet Explorer users all the features of other browsers without having to install a different browser (When a certain Meta tag is used on a web page)? The video Google released explains the product in a little more detail.
Create forms on a web page is relatively simple, however what most developers forget is the golden rule of usability, “Users are Idiots”. In a large number of websites they fail to provide a clear indication of how a form field needs to be formatted. Some even seem to even forget to clear the field when the user clicks into, which is really useful if your website has users with motor skills.
Here is a really neat piece of jQuery I use to make forms a little easier for users which takes little work to integrate (Just copy and paste before the tag).