摘要: 实例 通过 set_error_handler() 函数设置用户自定义的错误处理程序,然后触发错误(通过 trigger_error()): <?php // 用户定义的错误处理函数 function myErrorHandler($errno, $errstr, $errfile, $errlin 阅读全文
posted @ 2017-08-04 14:08 云龙笔记 阅读(245) 评论(0) 推荐(0) 编辑
摘要: php开发测试及线上的时候可以根据不同情况设定错误和异常处理需要用到有 设定错误和异常处理三函数 下面讲一下register_shutdown_function() 函数. 功能:register_shutdown_function() 函数可实现当程序执行完成后执行的函数,其功能为可实现程序执行完 阅读全文
posted @ 2017-08-04 14:06 云龙笔记 阅读(749) 评论(0) 推荐(0) 编辑
摘要: 本文安装的httpd版本为httpd 2.4.4安装之前确保 Development Libraries与Development tools安装上。安装方法参考:http://www.linuxidc.com/Linux/2016-04/130080.htm 与 http://www.linuxid 阅读全文
posted @ 2017-08-04 12:00 云龙笔记 阅读(5350) 评论(0) 推荐(0) 编辑
摘要: PHP运行模式有4钟:1)cgi 通用网关接口(Common Gateway Interface))2) fast-cgi 常驻 (long-live) 型的 CGI3) cli 命令行运行 (Command Line Interface)4)web模块模式 (apache等web服务器运行的模块模 阅读全文
posted @ 2017-08-04 10:54 云龙笔记 阅读(169) 评论(0) 推荐(0) 编辑