http://dev.csdn.net/develop/article/29/29026.shtm
http://dev.csdn.net/develop/article/29/29015.shtm关键:用C++编写php扩展,然后在php中调用,要什么功能就用C++来实现