In agile web application development it is a must to use deployment tool to sync your code with a staging server. I got the idea for some time from a presentation of a colleague of mine for Fabric witch is…
In agile web application development it is a must to use deployment tool to sync your code with a staging server. I got the idea for some time from a presentation of a colleague of mine for Fabric witch is…
Many applications use gettext for i18n and l10n. Gettext is PHP extension which holds translation strings in key-value pair. The translation is cached when apache first open the file which is good. However the issue with the cache raises a…
When I start developing web pages I used Notepad++. It is very light, has a lots of plugins that you can include in your editor and the base functionality is not bad. With time, it became insufficient, there was need…
For a project I have to implement a file manager. Here are some links to ready to implement php tools that you can use. Bellow is just a list of links of file managers Here are some of the free…
Install extension I was trying to install PECL extension and run into this problem with phpize error pecl install oauth downloading oauth-1.2.2.tar … Starting to download oauth-1.2.2.tar (Unknown size) ……………………done: 233,984 bytes 6 source files, building running: phpize Configuring for:…
Code The email validation function used was this. It validates emails with RFC standards. There is also an option to check the domain. The code is simple loop, that check an entry and put it in valid or bad array.…
Developing CRUD application with CakePHP is easy. The process usually starts with designing the database. Creating models, controllers and views with Cake 1.3 is even more easy. One can bake all models, controllers or views at once with the commands:…
Propel is database abstraction layer class using ActiveRecord pattern for CRUD operations. It implements validators, behaviors, table inheritance, reverse engineering an existing database, nested sets, mested transations, lazy loading, LOB etc. Supports MySQL, PostgreSQL, SQLLite, MSSQL and Oracle. Development started…
App::import(‘Xml’);$file = APP . ‘locale’. DS . ‘eng’ . DS . ‘LC_MESSAGES’ . DS . ‘en.xml’; $parsed_xml =& new XML($file); // convert the parsed file into array $xmlAsArray = $parsed_xml->toArray(); // display the arraydebug($xmlAsArray);