日历
标签
分类
存档
最新评论
Twitter
  • 我胡汉三又回来了!
    2008-12-11 22:51
  • 面向大海,面向未来,面向对象.
    2008-11-07 11:37
  • php貌似比英语还难学!
    2008-09-30 18:59
  • 生活因翻译而多彩,翻译因我而流畅!
    2008-09-07 15:14
  • 较早的»
最新日志
链接
搜索
博客信息
  • 日志数量:21
  • 评论数量:5
  • 引用数量:0
  • 今日访问:172
  • 总访问量:19438
订阅Rss

2008-9-17 10:54 Wednesday

    鉴于这个博客程序的文本存储很差,我自行更改了数据库中文本存储的类型,改为了超长文本类型,应该可以存下很大的文章了吧.我接下来要翻译的这篇文章貌似有点儿太长了,光英文就有4页多,翻成汉语估计我就要疯掉了.
 
原文:
 
An Introduction to AJAX
In the first part of this series, we took a look at how PHP 5 can be used to manipulate and parse XML files. In this installment, we are going to focus on Ajax, one of the most useful and topical applications of XML.
Initially, we are going to introduce Ajax and learn how to use the XMLHTTP object provided by most modern web browsers to create a live email validation form. Then we will pick up where we left off with the theme of XML and introduce XSLT, which we will use to transform our library XML from the previous article into valid XHTML code.
What is AJAX?
There exists today a huge number of web applications that do everything from manage your photos, to mission-critical distributed systems. The majority of these applications exist in three parts.
  • 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.

标签: 编程 英语 php AJAX Javascript XML XSLT html xhtml

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

2008-9-7 14:35 Sunday

   我简直要崩溃了,挑了个超难的题目来翻译,本来头就已经很大的说,结果翻译了一半自动保存就出了个大问题,导致已经翻译的文章都丢失了,难怪我的翻译老师说翻译不是人干的活.

     废话不说了,只好从头开始翻译了,简要介绍一下我所要翻译的这个系列文章.文章涉及的是使用PHP操作XML的方面,其中有一些算是入门的内容,但是肯定也有一些会谈及高级编程,不管怎么说这篇文章貌似全中国还没有人翻译过,拿它来开刀实在是适合我这样不知道天高地厚的小子.

原文:

This series of articles will focus on XML, its applications in modern day web development and how PHP fits into this niche. In this article, we will focus specifically on the tools provided to us by PHP which enable us to manipulate XML data sources.
 

阅读全文>>

标签: 编程 英语 php AJAX Javascript XML DOM Xpath simple XML

2008-9-4 13:27 Thursday

     很艰难的翻译完了第一篇php编程文章,在翻译的过程中学到了纯理论之外的一些东西.于是紧接着就翻译了这篇关于XML与PHP的文章,原因是因为这篇文章貌似在网上还未见译文,同时此篇文章涉及了AJAX在PHP中的实现,这算是比较热门的话题了,应该很多人都需要吧.
原文:
     In this article I will show how to generate dynamic XML documents with Object-Oriented PHP. Before I get started, let's get right to the heart of this functionality. Although the code may look fancy, being packaged up inside objects and inheritance, the key elements of this functionality rest in the the mysql_list_fields() and mysql_num_fields() functions.

标签: array php 数组 AJAX Javascript XML