Monthly Archives: March 2010

Modyfing Response Headers with Zend Framework

Response Headers You’ve probably seen that you can track the server response headers with Firebug – a wonderful extension to Firefox. But have you ever asked yourself how to change a response header with Zend Framework. header() Typically this is … Continue reading

Posted in web development | Tagged , , , , , , , , , , , , | 1 Comment

Read Remote File Content-Type with Zend_Http_Client

Check an Image on a Remote Server This is a common task. You’d like to know whether the image on the remote server exists. Zend Framework gives the answer of this question and in particular this can be completed with … Continue reading

Posted in micro tutorial, zend framework | Tagged , , , , , , , , , , , | 1 Comment

PHP: Mobile Devices HTTP_USER_AGENT Strings

So You’re Going Mobile It’s nice that at least you’re moving your site to mobile device. It’s really important. Now if you’re using PHP the question is how to detect the mobile browser. HTTP_USER_AGENT Every PHP developer knows that $_SERVER['HTTP_USER_AGENT'] … Continue reading

Posted in PHP, web development | Tagged , , , , , , , , , , | 2 Comments

JavaScript Comparision Snippet

== vs. === I know this is really for beginners, but have you ever asked yourself what are the differences between == and === when comparing in JavaScript, and when to use it? Here’s an example: var a = false; … Continue reading

Posted in javascript, snippets | Tagged , , , | 2 Comments

OpenLayers Can Be Faster!

Put All The Markers at Once! The way OpenLayers puts markers on the stage is fine when they are not so much, but once you need more than 100, the library’s solution is not good. The question is is there … Continue reading

Posted in javascript, micro tutorial | Tagged , , , , , , , | 8 Comments