Cron Job Script in Zend Framework

To create a cron job script in Zend Framework, we just need 3 steps : 1. Create a new directory called "scripts" which is the storage of all the scripts(.sh, .php, etc.). 2. Copy public/index.php into… Continue reading
Posted in Zend Framework| Tagged , | 1 Comment

Setup ZFDebug for Debuging your Zend Framework Project

"ZFDebug is a plugin for the Zend Framework for PHP5, providing useful debug information displayed in a small bar at the bottom of every page." We just need two steps to setup ZFDebug: 1. Download it … Continue reading
Posted in Zend Framework| Tagged , | Leave a comment

Create Multiple Websites with One Shared Library by Zend Framework

When we try to generate the project by Zend_Tool by command line like this: [codesyntax lang="bash" lines="no"] $ zf create project myProject [/codesyntax] We get a standard structure which is recomme… Continue reading
Posted in Zend Framework| Tagged | 1 Comment

Replace Accents by Normal Unaccented in PHP

Sometimes we need the string to only contain unaccented characters, for example urls, xml, filename etc. Expecially before PHP6, You may think of function setlocale() and iconv(), but they are evil...… Continue reading
Posted in PHP| Tagged , | Leave a comment

Configurations of htaccess for Multi-Sites in Sharehost

It's the htaccess configurations for multiple websites in sharehost. Cause sometimes you may not be able to modify apache vhosts. [codesyntax lang="apache" lines="no"] Options -Indexes -MultiViews +Fo… Continue reading
Posted in Apache| Tagged , | 1 Comment

Custom Url Helper for Zend View

[codesyntax lang="php"] /** * url helper * * @author kim */ class App_View_Helper_L extends Zend_View_Helper_Url { /** * the current module */ static $currentModule = null; /** * Generate the link for… Continue reading
Posted in Zend Framework| Tagged , | Leave a comment

CSS Skills

1. CSS Reset http://meyerweb.com/eric/tools/css/reset/index.html http://meyerweb.com/eric/tools/css/reset/reset.css 2. CSS Hack [codesyntax lang="css" lines="no" container="pre" tab_width="4"] .test {… Continue reading
Posted in CSS| Tagged | Leave a comment

Simple Wrapper of Zend Controller

My simple wrapper of Zend Controller. It has 5 features including getParam, redirector, json and flash message. [codesyntax lang="php" lines="no"] /** * class App_Controller_Abstract * * @author kim *… Continue reading
Posted in Zend Framework| Tagged , | Leave a comment

Hypertext Transfer Protocol and PHP

Http Articles : http://www.w3.org/Protocols/rfc2616/rfc2616.html http://www.ietf.org/rfc/rfc2617.txt http://www.ietf.org/rfc/rfc1945.txt http://www8.org/w8-papers/5c-protocols/key/key.html RFC2616 Sta… Continue reading
Posted in Network Protocol| Leave a comment

Flow Flash AD using JavaScript and SWFObject

This article shows how to create a flow flash ad by using javascript together with swfobject. @see getScroll.js @see http://code.google.com/p/swfobject/ [codesyntax lang="html4strict"] <!DOCTYPE html>… Continue reading
Posted in Flash, JavaScript| Tagged , | Leave a comment