Import Excel (XLS) document into MySQL database

The best way to read XLS files in PHP is using PHPExcelReader. It’s a great class becasue it does not use any COM objects, however the download package on SourceForge sometimes contains invalid XLS or example files, so I prepared a working package and you get get it here.

Read and write BMP in PHP: imagecreatefrombmp + imagebmp

This is an updated class to use BMP format in PHP. Previous version is
here. If all you need is loading and saving 24bit BMP files- you can use previous version. It has less code so works a bit faster.
This version saves 24bit BMP files and loads 1, 4, 8, 24 and 32 bit BMP files.

Wordpress error: File not readable.

A few days ago I tried to create a new Wordpress theme based on Kubrick theme. So I made a copy of the themes/default directory and did some changes. Then I tried to enable this theme in Wordpress and I got this error: “File not readable” next to my new theme’s CSS file.

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.

 
TopOfBlogs Web Development & Design Blogs