Blog Archives

Web application deployment

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

Tagged with: , , ,
Posted in Articles, Linux, PHP, Ruby On Rails

How to avoid apache restart for gettext cache issue

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

Tagged with: , , ,
Posted in Apache, PHP

NetBeans and Eclipse PDT shortcuts comparison

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

Tagged with: , ,
Posted in Articles, PHP

PHP File Managers for your projects

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

Tagged with: , ,
Posted in Articles, PHP

Install PHP extension on Linux Slackware 13.37 gets error: phpize failed

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:

Tagged with: , , ,
Posted in Linux, PHP

Separate valid and bad emails from a list

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.

Tagged with: , ,
Posted in PHP

Quick start on a project with CakePHP

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:

Tagged with: , ,
Posted in PHP

Propel – database abstraction tool

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

Tagged with: , ,
Posted in PHP

CakePHP custom validation message

CakePHP has automagic validation on fields defined in the model, but you have to be very careful how it is set. It appears that when you have custom message set in the view you have to have $this->Model->create($this->data); in the

Tagged with: , ,
Posted in PHP

Parse XML file in CakePHP

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);

Tagged with: , ,
Posted in PHP
Sites
Categories
Archives