Taking Screenshots of Websites with PHP

October 23, 2012 · Posted in Development · 1 Comment 

There are many command lines tools you can use to take a screenshots of a web page. See the list of tools here: in Windows, in Linux. The mentioned tools can be used on a from a php script using shell_exec function.

* If you are looking for taking screenshots programmatically in .NET – read the post Taking Screenshots of Websites with .NET Windows Forms.

Read more

PHP vs Ruby vs Python (Infographic)

January 23, 2012 · Posted in Development · Comment 

Read more

Introduction to Smarty 3

December 19, 2011 · Posted in Development · Comment 

This article shows the major changes in smarty 3.

Read more

Working with regular expressions (preg_) and UTF-8 strings in PHP

December 17, 2011 · Posted in Development · Comment 

Regular expression patterns \w, \d, \s will not work as expected for non-latin letters in a UTF-8 string when you use preg_ functions (like preg_match, preg_split, preg_replace).

First of all you must use modifier /u to work with UTF-8 strings correctly.

One of the best solutions to common tasks is to use the pattern escapes \P, \p, and \X, which refer to Unicode character properties.

Read more

Regular Expression to find words in Unicode (PHP, preg_)

November 13, 2011 · Posted in Development · Comment 

PHP has a special pattern \w to define alphabetic characters. But it doesn’t find words on other languages but English.

Read more

Installing and Using Memcached for PHP on Ubuntu

September 11, 2011 · Posted in Development · 4 Comments 

Memcached is free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Start from my article “Memcached Overview” to get an overview of memcached on Linux and Windows.

Read more