郁闷ing

始终不知道怎样去做才是对的,始终不明白什么才是自己所想要的 想要却不知道怎么去做,想做却不知如何做好,做了却不知是否应该 该忘却的挥之不去,该抛弃的割舍不下

今天,PHP 5.0.0 Released!

php5

The PHP team is proud to announce the final release of PHP 5!

Some of the key features of PHP 5 include:

The Zend Engine II with a new object model and dozens of new features. XML support has been completely redone in PHP 5, all extensions are now focused around the excellent libxml2 library (http://www.xmlsoft.org/).

A new SimpleXML extension for easily accessing and manipulating XML as PHP objects.

It can also interface with the DOM extension and vice-versa.

A brand new built-in SOAP extension for interoperability with Web Services.

A new MySQL extension named MySQLi for developers using MySQL 4.1 and later. This new extension includes an object-oriented interface in addition to a traditional interface; as well as support for many of MySQL’s new features, such as prepared statements.

SQLite has been bundled with PHP. For more information on SQLite, please visit their website.

Streams have been greatly improved, including the ability to access low-level socket operations on streams.

And lots more…

For changes since Release Candidate 3, please consult the ChangeLog.

动态改变脚本的执行时间,解决执行超时问题

在 php 的配置/信息里面有一个设置脚本执行时间的函数,具体情况如下: set_time_limit 配置该页最久执行时间。 语法: void set_time_limit(int seconds); 返回值: 无 函数种类: PHP 系统功能 内容说明 本函数用来配置该页最久执行时间。默认值是 30 秒,在 php.ini 中的 max_execution_time 变量配置,若配置为 0 则不限定最久时间。当执行到该函数时,才开始计算。例如,若默认是 30 秒,而在执行到该函数前已执行了 25 秒,而用本函数改为 20 秒,则该页面最长执行时间为 45 秒。 使用实例:

  1. <?php
  2. set_time_limit(200);
  3. ?>