阅读背景:

是否有可能在PHP中的会话中持有一个mysql对象?

来源:互联网 

For example, in this case, the 'views' count is clearly incrementing properly during the session but the mysqli object is not maintained and cannot be reused during the session (if the page is refreshed or whatever). Can the _SESSION global only hold simple types? What else could be limiting this? EDIT: my hope here is to improve performance. So if there is another way to achieve this, I'd be happy to know.For example, in this case, the 'views' count is




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: