2008-12-11 22:48 Thursday
本来一直在看中文版的php手册,但是谁知道这个中文版的翻译真是漏洞百出的,而且居然连原手册中的例子都能给搞错,暴汗了一下.于是一咬牙,一狠心,一跺脚下载了一个英文的手册.还挺新,12月-5号出的.一口气看到字符串一章,真是爽到家了.就在此时,说时迟那时快,发现字符串一章有了新内容-----nowdoc!!!!!!!!!!!!!!!这还得了,赶紧研究了一下,原来是php5.3.0版新引进的.貌似还没有注意到哦,所以俺就先下手为抢,抢先翻译一下这个新东东.
Nowdocs are to single-quoted strings what heredocs are to double-quoted strings. A nowdoc is specified
2008-11-9 3:16 Sunday
2008-11-7 11:35 Friday
php学习视频之二:
客户端脚本与服务器端脚本
2008-11-5 11:53 Wednesday
自己在网上找的英文版的php入门视频教程,语速基本上慢的很,b级水平以上都能听的懂.顺便就当练练听力吧,说不定php学完了4,6级也碰巧过了呢.
播放之前请关掉博客的背景音乐先.
2008-10-22 11:20 Wednesday
我学习php已经有一段时间了,在学习的过程中总是能够看到高手们在文章中提到mvc,但是貌似大家都对这个东西没有形成一个统一的权威的说法,所以我对mvc究竟是个什么东西也比较的茫然.很凑巧的,zend官网上介绍zend framework的一篇文章中提到了mvc,作为php的强有力支持者,我想zend关于mvc的解释应该算是比较权威的吧.于是乎就放到我的博客上,让更多的初学php的人能够理解这个概念.
原文:
译文:

2008-10-13 13:14 Monday
2008-9-17 10:54 Wednesday
The back end section is usually where the data pertinent to the application is stored. The back end may include logic which deals with the update and retrieval of this data in the form of server side code, SQL and stored procedures.
The middle ware section is where all the magic happens, typically transforming, manipulating, retrieving, verifying an validating the data before sending it on to the front end.
The front end section is what the user interacts with; it often contains very little logic and simply acts as an engine which initiates the communication with the middle end. Although the front end does not do much in terms of the application logic, it is probably the single most important part of the application. A poorly designed and awkward-to-use front end makes all the magic of the middle ware redundant.
2008-9-7 15:09 Sunday
这些只是Xpath的冰山一角.你可以用Xpath创建超级复杂的查询在你的文档中去寻找任何一种信息.我再次修改一下实例代码,你可以看看Xpath有多么的优雅.
PHP:<?php $xml = simplexml_load_file('xml/library.xml'); ?> <html>
标签: 英语 array php 数组 AJAX Javascript XML DOM Xpath simple XML
2008-9-7 15:06 Sunday
文章太长了,我不得不把文章截了又截,汗一个.这个程序的文本处理能力实在是太差了.
xml->save('xml/library.xml');
// save the whole file
$categories = $xml->saveXML($XMLCategories);
// return a string containing just the categories
以下是用Javascript写成的代码,它展示了在DOM程式化代码中为另一种语言创建端口是多么的容易:
标签: 英语 array php 数组 AJAX Javascript XML DOM Xpath simple XML
2008-9-7 14:58 Sunday
这个系列文章的焦点将会放在XML上,涉及XML在现今的WEB开发中的应用以及PHP是如何填补XML应用的空白.在本文中,我们具体了解一下PHP提供给我们的工具,它们可以帮助我们操纵XML源数据.
什么是XML及为什么要使用它?
XML(可扩展标记语言)是遵循W3C标准设计的,用以实现在WEB应用服务中便捷的数据交换,存储和使用.
标签: 英语 array php 数组 AJAX Javascript XML DOM Xpath simple XML