How to remove  from the beginning of a file in PHP

The best way to remove the special character of the beginning of a file in UTF-8 with DOM is to interpreter it correctly by PHP:

Install redis as server in ubuntu

Step 1. download latest stable version of redis, and install it

It will install in global:

Php header code

PHP header codes, for reference only:

dojo based Theme for YUIDOC

I just created a dojo based YUIDOC theme, it’s similar to Dojotoolkit Api. demo can be found here: YUI Api Doc Feature: …

get millisecond & unique timestampe in php

To get millisecond:

To get unique timestampe:

preg_replace_callback in class

variable scope in PHP is painful. not like java or javascript, you can’t get preg_replace_callback works like this:

what you have …

Highslide for Wordpress Plugin

Optimized by SEO Ultimate