PHP in enterprise applications. Comparison of PHP5 Frameworks.

PHP5 Enterprise is common name for large, heavily loaded applications, visited by so huge amount of users who can not by handled by a single server. This post describe performance test of three popular PHP frameworks: Symfony Framework, Zend Framework and cakePHP.

PHP5 Enterprise is common name for large, heavily loaded applications, visited by so huge amount of users who can not by handled by a single server. This large applications usually use open source libraries aims to alleviate the overhead associated with common activities performed in Web development. In PHP5, there are several sets of closely related libraries and frameworks.

This post describe speed and load tests of three popular PHP frameworks: Symfony Framework, Zend Framework and cakePHP. Continue reading “PHP in enterprise applications. Comparison of PHP5 Frameworks.”

Vim IDE and PHP / Symfony / Web develompment

VIM is very useful feature reach development environment. Its look & feel is beet different than other well known IDE. This difference is VIM power – it is extremely fast, has syntax highlighting, auto indent, bracket matching, code folding, etc.

VIM Logo VIM is very useful feature reach development environment. Its look & feel is beet different than other well known IDE. This difference is VIM power – it is extremely fast, has syntax highlighting, auto indent, bracket matching, code folding, etc.

VIM can work as the fastest professional development environment but requires from user change some of his habits. For the convenience of working with VIM you will need few free lessons (from vimtutor) a bit time and tips from this blog. After all you will work the most efficiently with the VIM, faster than in any other editor. Continue reading “Vim IDE and PHP / Symfony / Web develompment”

Auto repair XHTML code with PHP

Tidy PHP extension allows to automate fix XHTML and XML code. I wrote Symfony Plugin that provides automated code repair (ex. users input from TinyMCE or FCKEditor). The sfTidyHelper produce valid XHTML or XML code. If you done use Symfony you will find in this entry function repairing broken code.

To automaticaly cleanup and repair xhtml code (ex. from textarea or input tag) use Tidy extesnion for PHP.
Sample broken code which can be fixed

1
<p>ala <b> ma kota & psa<br />Lorem ipsum

to valid XHTML:

1
<p>ala <b> ma kota &amp; psa<br />Lorem ipsum</b></p>

Simple function which repair wrong code: Continue reading “Auto repair XHTML code with PHP”