• support[@]kurinchilion.com
  • +1 (888) 666-4252

Blog

RFC 3339 date format in RSS Feeds

Aug 12, 2012 - by kurinchilamp // 330 Views
RSS Feeds use RFC 3339 date format in their XML/Atom feeds. Date formats have often caused confusion in the development, interoperability and maintenance of software applications. To improve the consistency in use of Date and Time, RFC 3339 came into existence which uses Coordinated Universal Time (UTC). For PHP versions < 5.2, $dateRFC = "2008-12-01T13:30:00.000-04:00"; $myDate = date('d.m.Y', strtotime($dateRFC)); // 01.12.2008 For PHP versions >= 5.2, $dateRFC = "2008-12-01T13:30:00.000-04:00"; $myDate = new DateTime($dateRFC); $dateStr = date('d.m.Y', strtotime($dateRFC)); // 01.12.2008 Read: IETF: RFC 3339
Continue Reading

Linux: How to upgrade PHP from 5.1 to 5.2 in CentOS5?

Nov 15, 2011 - by kurinchilamp // 305 Views
First Check PHP version that is currently installed $ php -version Check Linux Version $ cat /etc/*-release (or redhat-release) Create a repo file with the content given below. As you can note, we are looking for package upgrade related to php only. (more…)
Continue Reading

Zend Framework: Simple steps to create Action Helper

Mar 06, 2011 - by kurinchilamp // 323 Views
Action helpers in Zend controller helps in abstracting concepts that are in common use for the project without cluttering the code base. Zend's official website and Zend casts gives detailed easy to use examples. Step 1: Decide where you want the helper class for the controllers to reside inside the application folder. For this example, let us create a folder hierarchy under "application" folder » application/controllers/Helper (more…)
Continue Reading

PHP Excel reader

Jan 26, 2011 - by kurinchilamp // 311 Views
php-excel-reader Parse and retrieve information from XLS files Download from Code Google When the excel reader is run on PHP 5.3, below mentioned deprecated warning messages gets shown. i) Assigning the return value of new by reference is deprecated Remove & from the line below $this->_ole =& new OLERead(); and have $this->_ole = new OLERead(); instead. ii) Function split() is deprecated Function split() is deprecated and we can use explode() instead of that. $parts = split(";",$format); change it to $parts = explode(";",$format);
Continue Reading

How to configure Zend Framework in windows?

Oct 29, 2010 - by kurinchilamp // 305 Views
Steps to configure Zend Framework in windows i) Check if the path to PHP executable is set. You can check this by executing php -version from command prompt. ii) Move zf.bat (or zf.sh) and zf.php which will be present in the Zend Framework's bin folder to the php's bin folder (where php.ini resides) iii) Move \path\to\znedframework\library to the location identified by "include_path" variable One way to identify the include_path variable -> php -i Other way is to open the php.ini file to identify the location. You can also append the path to zend framework's library to the include path variable within php.ini file. For Windows users, you can add an environment variable (system variable) that would point to the Zend Framework's library folder and name the variable "ZEND_TOOL_INCLUDE_PATH" If the configuration has been done correctly then you should be able to get a positive response when you execute -> zf show version -> zf --help
Continue Reading

PHP: ‘Fatal error: Allowed memory size of 8388608 bytes exhausted’

Aug 02, 2010 - by kurinchilamp // 317 Views
Reason why you see this message is due to PHP memory leakage. PHP is trying to load a large image or file into memory and is not finding enough space for it to load. If you think, that you will need the necessary feature to upload large files then there are two ways by which you can enable this feature. i) Edit the physical file and have the line ini_set("memory_limit","20M"); ii) Edit php.ini and add the following line. You need to restart the apache/IIS server once php.ini file is modified. memory_limit=32M
Continue Reading

TECHNOLOGY DEV STACK

Following are some of the technologies that we use to build and maintain solutions for our clients.