2016-05-03 12:55:46 0 Comments PHP Boy.Lee

compare PHP file_get_contents and curl for grab online

In PHP develop, we usually need grab data online, we have two tools: file_get_contents and curl, this topic will compare this two tools based on normal develop and give some advices
Yii 2.0 Error

Yii 2.0 Error "Unable to verify your data submission"

When Post Data in Yii 2.0 Framework will get this kind error "Bad Request #400 Unable to verify your data submission", reason is because CSRF check fail, here is some solutions.
Add Hreflang label for Multi-Language WebSite
2016-04-25 12:47:31 0 Comments SEO Boy.Lee

Add Hreflang label for Multi-Language WebSite

Google suggest add hreflang label to multi-language website's header section, it will help display correct language content to correct user, it's also a kind SEO
Use PHP and Nginx to control CDN refresh time
2016-04-21 16:44:45 0 Comments CDN Boy.Lee

Use PHP and Nginx to control CDN refresh time

CDN(Content Delivery Network) is a very popular tool in our dev, it use outside CDN server to cache and faster resource load, because of the cache ability, It's pain to refresh. here to introduce a way use PHP+Nginx to full control CDN refresh time.
2016-04-19 15:15:00 0 Comments MySQL Boy.Lee

Format date field in MySQL statement

Use MySQL's date format function to format date in SQL statement
2016-04-19 13:47:42 0 Comments Linux Boy.Lee

Fixed Centos SSH connection auto break

the way to keep ssh connections for hours, to save re-connection work.

Use DAO in Yii 2.0 Framework

The Demo Code for how to use DAO in Yii 2.0 Framework

Fixed Yii 2.0 Debug Tool not display correct

When found Yii 2.0's Debug Tool not display correct, use the follow steps to check and fix it.

Yii Lib Video Tutorial is coming

Yii Lib is new Yii 2.0 framework video tutorial by BoyLee, will public soon.
From YiiBlog.info to YiiLib.com
2016-04-15 12:23:42 0 Comments News Boy.Lee

From YiiBlog.info to YiiLib.com

We decided to start use the new domain YiiLib.com since Mar 2016. It's from YiiBlog.info(2011-2016)
New YiiLib.com online
2016-04-13 21:26:41 0 Comments News Boy.Lee

New YiiLib.com online

after about 1 month dev, the new Yiilib.com is online, just hope the new site can bring you some new feeliing
2013-10-09 17:18:54 12 Comments News Boy.Lee

hm. back again.

2013-04-30 20:26:21 0 Comments News Boy.Lee



manage PK in Yii Framework's AR

The demo code for how to manage single or composite PK in Yii 1.0 Framework AR
2013-03-14 19:24:47 0 Comments PHP Boy.Lee

understand relation between PHP variable $_SERVER and HTTP request

analysis the relation between PHP variable $_SERVER and HTTP request
2013-01-25 23:50:06 0 Comments PHP Boy.Lee

CURL demo code

Code demo for how to use PHP's CURL