文字

特点

  • 用 PHP 进行 HTTP 认证
  • Cookie
  • 会话
  • 处理 XForms
  • 文件上传处理
    • POST 方法上传
    • 错误信息说明
    • 常见缺陷
    • 上传多个文件
    • 对 PUT 方法的支持
  • 使用远程文件
  • 连接处理
  • 数据库持久连接
  • 安全模式
    • 保安措施和安全模式
    • 被安全模式限制或屏蔽的函数
  • PHP 的命令行模式
    • 内置Web Server
    • INI 配置
  • 垃圾回收机制
    • 引用计数基本知识
    • 回收周期(Collecting Cycles)
    • 性能方面考虑的因素
  • DTrace 动态跟踪
    • PHP 和 DTrace 介绍
    • 使用 PHP 和 DTrace
    • 使用 SystemTap 监控 PHP DTrace 静态探针

用户评论:

[#1] yohgaki at hotmail dot com [2001-04-14 02:48:18]

PHP manages freeing all resources. Users does not required to free file handle resource, database resources, memory, etc, unless programmer need to free resource during script execution.
(All resources are released after script execution)

PHP4 also have reference count feature. For example, memory for variables is shared when it assigned to other variable. If contents has been changed, PHP4 allocate new memory for it. 

For example, programmer does not have to use pass by reference for large parameters for better performance with PHP4.

It would be a nice section for new PHP users, if there is "Resource Handling" section or like. Explanation about reference count feature in PHP4 would be very helpful to write better PHP4 scripts also.

上一篇: 下一篇: