PHP + CURL: Get Returned Content Mime Type

Did you ever tried to get mime type of the returned content in CURL! I was writing a small application for something and thought to know the Content-Type (mime type) of the response data returned by CURL’s exec(). Before thinking of anything else, I habitually started Goggling and found this… READ MORE

Compressing CSS Files on the Fly

Compression can be done using Apache or PHP settings. If you are not using those two methods and using this method of clearing cached CSS file on Client side then the code below by Reinhold Weber can be useful.
Using the below method for trimming whitespace and comments may not… READ MORE

How to Display Broken Images in Firefox?

Firefox does not display broken image. If image has alt attribute set then Firefox will display alt text otherwise if will not display anything. IE display cross marked image when image is broken, when image cannot be found at the source. Firefox does it all for making the web page… READ MORE

Filter/Edit CSV (Comma Separated Value) Data

CSV is very common format for data interchange. It is not as famous as XML and JSON but it is always easy to work with. CSV file can be opened directly in MS Excel and readable in any text editor. It does not take as much space as XML takes.… READ MORE

Get User Defined Constants in PHP

PHP function – get_defined_constants()  gives all the constants defined in current scope.  It can be CORE Constants, extensions defined constants and user defined constants. As a developer you may be interested in all defined constants or user defined constants at a time. As the total number of constants printed on… READ MORE

Giving Credit For Resource Used from Other Place But Not Link Credit!

I have seen number of times that very high traffic web sites use a trick sometimes when they want to mention a website or a resources (images etc) but do not want to give direct link. At first instance it look that it is for tracking a link but I… READ MORE

Blog Stats

It is a statistics about one month from Google Analytics. Click on the image to see larger version of image.

Stats directly from awstats:

Eclipse Error – Failed to load the JNI shared library "C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll"

Today I thought to check with new Version of eclipse – Helios.  I have download the eclipse, which was a good 143 MB and it took quite some time to download. When I tried to start the eclipse it does not worked. Eclipse gave me this error:- Failed to load… READ MORE

Javascript: Validate That Input String Length Falls In Range For Different Types

I am not sure what should be the title of the this post. I thought of titles like: JavaScript compare number in between array, check values in between min and max etc then thought of the long title. Still I am not sure if title is appropriate!
I got few… READ MORE

Google Analytics: Track Outbound Links And Special Pages

Google analytics has lots of functionality but it does not provide an easy way of tracking outbound links on click. MyBlogLog provides this functionality is very useful way but that is free only 10 entry each days. That also has restriction on free version that you cannot see report after… READ MORE