Category Archives: PHP

Download Images with PHP

As it seems one possible solution while trying to download images with PHP is to write a “client” to do so. Will it be with cURL, Zend Framework or some other tool – it doesn’t matter. However one of the … Continue reading

Posted in micro tutorial, PHP, web development | Tagged , , , , , , , | Leave a comment

A Memcached Zend_Cache

Zend_Cache Usually Zend_Cache is used to store cache files on the file system, which can be really fast and useful in most of the cases. However there’s a faster cache mechanism and hopefully it’s supported by Zend_Cache as well. This … Continue reading

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

How to Overcome Zend_Cache_Frontend_Page’s Problem with Cookies

Zend_Cache_Frontend_Page First of all there are several things to know about Zend Framework and caching. Whenever you work on a big web application caching is one of the mostly used mechanisms of speeding up the app and improve user performance. … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , , , , , , , , , , , , , , , , | 3 Comments

Some PHP Tips: basename()

Here’s a quick tip: I’ve an absolute file path “/var/www/html/index.php”, but I need only the file name – index.php. So how do I get it? basename There it is: $filename = basename(’/var/www/html/index.php’); now $filename contains only “index.php”!

Posted in micro tutorial, PHP | Tagged , , , , | Leave a comment

Using PHP’s array_diff in Algorithm Development

array_diff can be really powerful. Once you’ve to find the different elements between two arrays you’ve to use array_diff. Here’s a case when you can use it while coding a simple algorithm. The Task You’ve one array with tickets of … Continue reading

Posted in micro tutorial, PHP | Tagged , , , , , , , , | 1 Comment