Xmarks Hosts

# Xmarks Hosts 173.239.65.20 www.xmarks.com 173.239.65.21 api.xmarks.com 173.239.65.22 login.xmarks.com 173.239.65.23 sync.xmarks.com 173.239.65.20 static.xmarks.com 173.239.65.20 download.xmarks.com … Continue reading
Posted in Uncategorized| Leave a comment

Google DNS

203.208.39.22 www.google.com 203.208.39.22 mail.google.com 203.208.39.22 www.google.com.hk 203.208.39.22 webcache.googleusercontent.com 66.249.89.104 encrypted.google.com 66.249.89.99 code.google.com … Continue reading
Posted in Uncategorized| 1 Comment

Zend Framework 2.0 Roadmap Review

Being one of the most famous PHP frameworks in the world, Zend Framework has set up its roadmap for version 2.0. As ZF 1.10 may certainly be the final release of 1.x branch, we are now going to be foc… Continue reading
Posted in Zend Framework| Tagged | Leave a comment

CMD fast

CMD fast for folder : [HKEY_CLASSES_ROOT\folder\shell\cmd] CMD fast [HKEY_CLASSES_ROOT\folder\shell\cmd\command] cmd.exe /k cd %1 Continue reading
Posted in Uncategorized| Tagged | Leave a comment

Prevent Hotlinking

1. Default image http://static.kimbs.cn/logo.png 2. Create apache .htaccess RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ [NC] RewriteCond %{HTTP_REFERER} !kimbs.cn [NC] RewriteRule .*.(gif|jpg|png… Continue reading
Posted in SEO| Tagged | Leave a comment

PHP Coding Standards (5) – Errors and Exceptions

1. The Zend Framework codebase must be E_STRICT compliant. Zend Framework code should not emit PHP warning (E_WARNING, E_USER_WARNING), notice (E_NOTICE, E_USER_NOTICE), or strict (E_STRICT) messages … Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

Registry Pattern in Zend Framework

The registry has provided a mechanism which help you to store and maintain your objects within the application. It's aim at preventing improperly using the global objects by users. The registry usuall… Continue reading
Posted in Design Patterns| Tagged , | Leave a comment

PHP Coding Standards (4) – Inline Documentation

1. Docblocks start always with "/*" or "/**". The use of "#" is not allowed. The " //" is only allowed for comments within functions. For example : [codesyntax lang="php"] /** * Class docblock */ clas… Continue reading
Posted in Coding Standards| Tagged , | 1 Comment

PHP Coding Standards (3) – Coding Style

1. PHP code must always be delimited by the full-form, standard PHP tags. Short tags are only allowed within view scripts. For example : [codesyntax lang="php"] <?php // Php code here ?> [/codesyntax]… Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

Singleton Pattern in Zend Framework

The singleton provides a very good solution to the problem when you need an object to be handled as always single and global. Singleton, which may usually merge up with other patterns (e.g. registry, … Continue reading
Posted in Design Patterns| Tagged , | Leave a comment