1、没有连接池,如果使用mysql,可以使用pconnect,但,有些测试说他的效率不高

解决方案 »

  1.   

    2、这是php manunal中关于serialize的说明serialize() returns a string containing a byte-stream representation of value that can be stored anywhere. This is useful for storing or passing PHP values around without losing their type and structure. To make the serialized string into a PHP value again, use unserialize(). serialize() handles all types, except the resource-type. You can even serialize() arrays that contain references to itself. References inside the array/object you are serialize()ing will also be stored. When serializing objects, PHP will attempt to call the member function __sleep() prior to serialization. This is to allow the object to do any last minute clean-up, etc. prior to being serialized. Likewise, when the object is restored using unserialize() the __wakeup() member function is called. 注意这段话:
    In PHP 3, object properties will be serialized, but methods are lost. PHP 4 removes that limitation and restores both properties and methods. Please see the Serializing Objects section of Classes and Objects for more information.
      

  2.   

    1、数据库连接池!
    没有。连接池是由客户与数据库间的中间层软件提供的如jdbc、odbc。php使用底层函数直接与数据库交互,所以没有,也不需要有2、持续化!
    请把定义说清楚
      

  3.   

    谢谢各位,,
    难怪我找不到连接池我是想知道有没有类似CMP、Hibernate之类的持续化概念谢谢!