dgj:
恕我愚钝,我的服务器是IIS5,PHP版本4.06,PEAR库是不是一个
扩展库,还有如能对如何模拟实现[!!!自动调用!!!]析购函数加以
详细说明,则万分感谢。
恕我愚钝,我的服务器是IIS5,PHP版本4.06,PEAR库是不是一个
扩展库,还有如能对如何模拟实现[!!!自动调用!!!]析购函数加以
详细说明,则万分感谢。
解决方案 »
- 求救!!php服务器错误!!
- 使用SSI服务器端包含,需要注意哪些安全事项? (IIS服务器)
- 网页制作取经
- 请问应该学习那种变成思想
- apache服务器如何设置网站目录?
- 怎么进行时间比较?
- 请教高手:这样的文件名在编程时候是如何实现的?在线等
- 请问,这个正则表达式什么意思?谢谢!
- 我在网上经常看见,一个链接 NextPage.php?Var=... 请问这是不是也是传递变量的一种方法啊,怎么用啊,能举一个例子吗(不是SESSION吧,S
- include("http:/localhost/yun.php?Way=gg") 能不能传参数?
- 在linux下php.ini的include_path应该如何设置
- 急!请帮忙看看!
http://php.net/register_shutdown_function
Description
int register_shutdown_function ( string func)
Registers the function named by func to be executed when script processing is complete. 好像跟我所说的有些不同吧,我的意思是如果定义了一个类,不妨做个假设:
其间我产生了若干个属性集合(数组),如果实例化的话(new 一个对象),
最后使用完毕,unset时自动调用这个类的撤销函数(目的是把上面说的属性集合
撤销),当然这些是安慰性的。但是如果是这个类使用完毕时[!!!我想写个日志!!!]呢??? register_shutdown_function,看它的意思应该是注册一个func函数,使得当
这个脚本执行完毕时执行这个函数。
Note: There are no destructors in PHP 3 or PHP 4. You may use register_shutdown_function() instead to simulate most effects of destructors. Destructors are functions that are called automatically when an object is destroyed, either with unset() or by simply going out of scope. There are no destructors in PHP. 看来没有析购是肯定的了,但是,如果用register_shutdown_function模拟的
化,我怎么判断这个对象确实被这个脚本引用并实例化了呢???