To achieve this recipe, follow these simple steps:
1. Get the script and save it on your computer (I assume you named it timthumb.php)
2. Use a FTP program to connect to your server and create a new directory called scripts. Upload the timthumb.php file in it.
3. Once done, you can display images like this:
<img src="/scripts/timthumb.php?src=/images/whatever.jpg&h=150&w=150&zc=1" alt="" />
In other words, you just have to call the timthumb.php file and pass your image as a parameter. same goes for desired width or height.