Archive for June, 2009

[PHP] Dreamweaver too many connections error

I am not using dreamweaver to develop my php code, but i replied the question about `mysql too many connection error` in experts-exchange. The problem is the question author used the dreamweaver to create website and connect mysql database, however they always get the `too many connection error`.

The reasons is default dreamweaver will using pconnect() to connect database, have are simple solutions is modify dreamweaver scripts library.

Read the rest of this entry »

 

[PHP] Generate possible letter combination

Sometime you may want to generate the list of all letter combination like `A to Z`, PHP provided the built-in function range(). But if you need the range like `BB to ZZZ`? my customize function may help.

PHP built-in function range()
A ~ Z

ycTIN customize function ycRange()
A ~ ZZZ (unlimited)

Read the rest of this entry »