适合触发
ignore_user_abort
(PHP 3 >= 3.0.7, PHP 4, PHP 5)
ignore_user_abort -- Set whether a client disconnect should abort script execution
说明
int ignore_user_abort ( [bool setting] )
Sets whether a client disconnect should cause a script to be aborted.
参数
setting
If not set, the function will only return the current setting.
返回值
Returns the previous setting, as a boolean.
2010年3月12日星期五
2009年1月12日星期一
2008年12月25日星期四
smarty 调试方法
这两天看smarty代码有所得
对于smarty 调试有三种方法
1.$smarty->debugging=true
2.$smarty->debugging_ctrl = 'URL'; URL表示当关键词SMARTY_DEBUG出现在QUERY_STRING(查询字符串)中时,针对此脚本的调用,调试被启动 例如 http://127.0.0.1/test.php?SMARTY_DEBUG
3.第二种的扩展
$smarty->debugging_ctrl = 'URL'; 在QUERY_STRING 里加入 SMARTY_DEBUG=on 调试开启,加入SMARTY_DEBUG=off. 它的实现方法为 在cookie 做个标记
对于smarty 调试有三种方法
1.$smarty->debugging=true
2.$smarty->debugging_ctrl = 'URL'; URL表示当关键词SMARTY_DEBUG出现在QUERY_STRING(查询字符串)中时,针对此脚本的调用,调试被启动 例如 http://127.0.0.1/test.php?SMARTY_DEBUG
3.第二种的扩展
$smarty->debugging_ctrl = 'URL'; 在QUERY_STRING 里加入 SMARTY_DEBUG=on 调试开启,加入SMARTY_DEBUG=off. 它的实现方法为 在cookie 做个标记
订阅:
博文 (Atom)