Archive for February, 2010

 

Load and save Bmp in PHP: imagecreatefrombmp + imagebmp

If you want to open or create 24bit BMP images with PHP- just grab my simple library.

Can’t find colors that “match”?

I recently had a problem creating a pie chart. Writing the PHP/HTML/CSS code was not a problem, but the chart was not looking too attractive. Obviously something was missing. After a while I realized the colors just don’t match…

jQuery Tooltip plugin by Jörn Zaefferer

If you want to replace standard hint box with something more visually attractive you should try jQuery Tooltip 1.3.

The plugin is small in size- less than 8 kB of uncompressed JS code and very easy to use.

Open TGA with PHP: imagecreatefromtga

Need to read TGA files in PHP? Here’s an implementation of imagecreatefromtga, which reads 24 bit TGA images both RLE compressed and uncompressed. You can use it as any other imagecreatefrom* function.

IMDB class- find movies, get information about movies & actors

This classs is a nice way to find information about movies and actors on IMDB and display it on your own page.
It doesn’t have full IMDB site functionality, but what it can do should be enough in most cases.
So- you can search for movies and actors and get actor/movie information page. All the results are returned as simple array, so it’s really use to use.

How to compress CSS files with PHP?

In this post I will present a class I wrote for CSS compression. I know there are some scripts which can do this, but maybe someone will find mine somehow better :)

The code is simple and the whole thing runs fast. It removes unnecessary elements such as comments, whitespaces, tries to compress colors and so on. It can also output gzip compressed CSS.

Fast PHP WhoIs class – get information about domains

This time I want to present my class for getting information from WhoIs database about any domain.
I know there are already classes for it, but I couldn’t find anything “nice”. There is, for example, http://sourceforge.net/projects/phpwhois/ project, but it’s almost 0,5 MB of code- waaay too much.

Optimizing gif, jpg, png, html, css and js files

Kashmir Web Optimizer is a simple-to-use Windows application which can compress website specific files like CSS, JS, HTML, GIF, PNG and JPEG. The compression is lossless, so no real information is removed.

For JPEG files the application is mostly removing EXIF sections and comments. PNG and GIF files are recompressed with stronger compression. From HTML, JS and CSS files it is removing comments and unnecessary whitespace characters. And does even more!

 
TopOfBlogs Web Development & Design Blogs