PHP :: 这个提示信息很重要!

Posted on 30th December 2005 by Nio in 程序人生

有台 WIN 机器的 PHP 版本还是 4.3.8,想想很久没有更新了,更新一下吧,于是下了个最新版本的 4.4.1 ZIP 包,将其解开,覆盖之前的 PHP 目录(我一向不喜欢使用 Windows Installer 进行安装,从来都是解 ZIP 包,因为这样我能把文件都集中在一个目录下,只把 php.ini 单独出来放到 C:\WINNT 目录下,即使其他绿色软件也是这样安装方式,也是为了自己能够清楚知道软件所包含的文件都在哪里)。没想到这次更新出了个小差错,在覆盖文件之后,重启 Apache 出错,说无法加载 php4apache.dll,仔细查了一下 install.txt,发现如下提示:

Note: In PHP 4, you should move all files located in the dll and
sapi folders to the main folder (e.g. C:\php).

就是说对于 PHP4 需要把 sapi 目录下的 php4apache.dll(或你选择的安装方式所需要用到的 DLL 文件)复制到 PHP 安装的主目录中(如:C:\php)。后来查阅了一下ChangeLog,好像是从 4.3.9 开始做的修改。复制完之后相应修改了一下 httpd.conf,启动 Apache 服务,OK 了 :)

Language Oriented Programming-面向语言编程

Posted on 28th December 2005 by Nio in 程序人生

每次看 Martin Fowler 的文章都是受益匪浅,今天无意中看到《Language Workbenches: The Killer-App for Domain Specific Languages?Most new ideas in software developments are really new variations on old ideas. This article describes one of these, the growing idea of a class of tools that I call Language Workbenches - examples of which include Intentional Software, JetBrains's Meta Programming System, and Microsoft's Software Factories. These tools take an old style of development - which I call language oriented programming and use IDE tooling in a bid to make language oriented programming a viable approach. Although I'm not enough of a prognosticator to say whether they will succeed in their ambition, I do think that these tools are some of the most interesting things on the horizon of software development. Interesting enough to write this essay to try to explain, at least in outline, how they work and the main issues around their future usefulness.

PHP to Java bytecode

Posted on 22nd December 2005 by Nio in 程序人生

著名开源软件 Resin 背后的公司 Caucho 已经在其 Resin 特性中增加了对 PHP 的支持,这意味着在 Resin 中可以运行 PHP 代码,服务器在后台将 PHP 代码编译成和 JAVA CLASS 那样的字节码进行运行,据说速度比 Apache mod_php 方式快 6 倍左右,不过目前还有一些函数不支持。

如下是 hello.php 的配置文件 WEB-INF/resin-web.xml:

<web-app xmlns="http://caucho.com/ns/resin">
  <servlet servlet-name="resin-php"
           servlet-class="com.caucho.quercus.servlet.QuercusServlet"/>

  <servlet-mapping url-pattern="*.php" servlet-name="resin-php"/>	   
</web-app>

Nio v2.0

Posted on 22nd December 2005 by Nio in 宝宝

男孩
出生时间:2005年12月17日正午,农历11月17日,周六
出生地点:河南新乡中心医院
出生体重:六斤六两
生辰八字:乙酉 戊子 乙亥 壬午
image

image

(more…)

del.icio.us 不能用了

Posted on 15th December 2005 by Nio in 日常生活

上午就发现 del.icio.us 不能用了,中午去看,还是显示同样的信息:del.icio.us is down for maintenance. we'll be back in one hour.请问 one hour 是多久?!。。。。。:(