logo资料库

PHP类的外文翻译.doc

第1页 / 共17页
第2页 / 共17页
第3页 / 共17页
第4页 / 共17页
第5页 / 共17页
第6页 / 共17页
第7页 / 共17页
第8页 / 共17页
资料共17页,剩余部分请下载后查看
录 附录 A 外文翻译-原文部分 PHP succeeding where Java isn't Quote:BURLINGAME, Calif.--The simplicity of scripting language PHP means itwill be more popular than Java for building Web-based applications,Internet browser pioneer Marc Andreessen predicted Wednesday in aspeech here at the Zend/PHP Conference. Java enjoyed great success when its inventor, Sun Microsystems,released it in 1995, largely because it was optimized better for programmers than for machines, making software development significantly easier, Andreessen said. Unfortunately, Java has acquired many of the unfavorable characteristics of its predecessors, he added. "Java is much more programmer-friendly than C or C++, or was for a few years there until they made just as complicated. It's become arguably even harder to learn than C++," Andreessen said. And the mantle of simplicity is being passed on: "PHP is such is an easier environment to develop in than Java." That opinion might not sit well with Java loyalists--and there areplenty of them among the millions of Java programmers and hundreds of companies involved in the Java Community Process that controls the software's destiny. But even some influential executives at IBM, which was instrumental in bringing Java to the server and whose WebSphere server software has Java at its core, see the benefits of PHP over Java. "Simplicity is a huge part of it," said Rod Smith, vice president of IBM's Emerging Internet Technologies Group, describing PHP's appeal the interested in adding language features to compete with other conference. "They weren't languages," choosing instead "the simple way, and not in Java, unfortunately." PHP is an open-source project including an engine to simple programs called PHP scripts and a large library of pre-built scripts. Much of its development is in the hands of a company called Zend, which sells packaged PHP products,programming tools and support. In 1994, Rasmus Lerdorf first designed the PHP programming language. June 1995, Rasmus Lerdorf in Usenet news groups on comp.infosystems.www.authoring.cgi statement released PHP 1.0. April 1996, Rasmus Lerdorf at comp.infosystems.www.authoring.cgi on Usenet news groups issued a statement of the second edition of PHP. PHP 1 compared to a simple tag replacement code, PHP Second Edition contains a more complex deal that could be embedded tag language parser. 1997, Tel Aviv's Andi Gutmans and Zeev Suraski voluntary re-prepared to resolve the underlying engine, a lot of other people have voluntarily joined the PHP part of the other job, then PHP has become the true sense of the open-source projects. June 1998, PHP.net statement released PHP 3.0. Published after the number of users before the prices really start. May 22, 2000, PHP 4.0 release. This version was developed by the hope that the architecture of PHP to do some basic changes in the developer-driven, these changes include language and Web server levels between the abstract, and add a thread-safe mechanism to add a more advanced to IBM in a meeting with reporters at the way we've done it
Analysis of two-stage analysis system with the implementation tag. This new analytical procedure is still by Andi Gutmans and Zeev Suraski prepared, and was named for the Zend engine. July 13, 2004, PHP 5.0 release. The version of Zend Engine II for the engine, and add new features such as PHP Data Objects (PDO). July 13, 2004, PHP 5.0 release. The version of Zend Engine II for the engine, and add new features such as PHP Data Objects (PDO). Wooing programmers is nothing new in the computing industry, where players constantly jockey to establish their products as an essential foundation. Indeed, many credit Microsoft's success to its highly regarded programming tools, which make it easier for developers to write software that run on Windows. PHP has caught on widely. About 22 million Web sites employ it, and usage is steadily increasing.About 450 programmers have privileges to approve changes to the software. Major companies that employ PHP include Yahoo, Lufthansa and Deutsche Telekom's T-Online. PHP is more limited in scope than Java, which runs not just on Web servers but also on PCs, mobile phones, chip-enabled debit cards and many other devices. Some parts of the Java technology, though, such asJava Server Pages, handle much the same function. "Java and PHP compete at some level. Get over it," Mike Milinkovich,executive director of Eclipse, said in a meeting with reporters.Eclipse is an open-source programming-tool project that long supported Java and now also supports PHP. "I'm looking forward to PHP kicking butt in the marketplace," Milinkovich said. Java and PHP are drawing nearer to one another, though. Oracle, which also sells Java server software and whose database software can be used as a foundation for either Java or PHP, is among those working on an addition to Java to help the two software projects work together. Specifically, Java Specification Request 223 will "help build that bridge between the Java community and the PHP community," said Ken Jacobs, vice president of product strategy at Oracle, in a speech at the conference. And even Andreessen, who just helped launch a start-up called Ning for sharing photos, reviews or other content online, acknowledges that Java has its place. "My new company is running a combination of Java and PHP. This is something I get no end of crap about," he said of the technical decision. "We have a core to our system that is built in Java. It ismore like an operating system, like a system programming project. Then we have the entire application level--practically everything you see is in PHP." PHP, like open-source projects including Linux and Apache, now has received the blessing of major powers in the computing industry. IBM and Oracle are working on software that let PHP-powered applications pull information from their databases, and that endorsement has been important, said Zend CEO Doron Gerstel. "The fact that IBM and Oracle are behind it--this is for a lot of IT(customers) a quality stamp. The big guys endorse it, so it must be good," Gerstel said in a meeting with reporters. The new version 5.1 of PHP, scheduled to arrive in early November, will include a faster engine to process PHP scripts, said Zeev Suraski,a Zend co-founder and PHP creator. It also will include a low-level "data abstraction layer" that makes it easier for PHP to communicate with different databases and a higher-level layer to interface with XML information produced and consumed by Web services.
Version 6, which is expected to arrive in 2006, will support Unicode character encoding, which supports a wide range of alphabets,simplifying creation of software that works in multiple international regions. Andreessen said he believes the Web is where most new applications will reside--in part because Web applications are available as soon as they're launched, sidestepping the distribution challenge of desktop software. "Microsoft talks a lot about Avalon (display technology in the upcoming Vista version of Windows) and fat clients. But they still have a problem. You have to get the program out onto everybody's desktop. With the Web model, you don't," Andreessen said. "I think there's no question the Web model is going to dominate over the next 10, 20, 30years." Some interesting work is being done on the PCs, however, but he pointed only to applications that run in a Web browser and that rely on data and services supplied over the Internet. Here, again, Java is losing toan unrelated scripting technology called JavaScript and a JavaScript offshoot called AJAX that permits a fancier user interface. "JavaScript was, and now with AJAX is, the standard way to do client-side development in a browser, as opposed to Java," Andreessen said. "Java applets in the browser never took to the extent some of us thought they would." Not everyone sees things the same way. Google uses some cutting-edge browser-based software such as AJAX, but CEO Eric Schmidt took the stage earlier this week with Sun CEO Scott McNealy to announce that the Google Toolbar will be piggybacking on distributions of the desktop version of Java. "I was amazed to find out how much the Java Runtime Environment is inside companies, either because a CIO standardized on it or there are enough applications that the CIO wants the JRE to be a standard" part of the company's computing infrastructure, Schmidt said at the Sun-Google event. As part of that partnership, Google will help develop Java. Netscape pushed JavaScript as a way to build fancier Web pages than the fundamental HTML (Hypertext Markup Language) standard permitted, but without the more difficult programming Java required, Andreessen said."We did JavaScript to try to be an intermediate bridge between HTML and Java. I got in huge fights with Sun over this," Andreessen said. "They got mad. Then I told them we wanted to name it JavaScript, and that made them even madder." Java isn't the only client software that didn't live up to its promise, Andreessen said. Macromedia's Flash format, which enables animation,sound, motion and other splashy features within browsers, also is onthe list. "I think Flash is one of the most exciting technologies out there that's almost on the verge of great success and never quite achieving it," Andreessen said. [The End] 附录 B 外文翻译-译文部分 PHP 将在网络应用上比 Java 更加成功 引用:BURLINGAME, Calif 消息: PHP 脚本语言的简单性会令其在网络应用上比 Java 更 易推广和普及,互联网溜览器的先驱 Marc Andreessen 在 Zend/PHP 星期三的演讲中如此预 言。 Andreessen (安德森)说:自从 1995 年,Sun Microsystems 开创并发布 Java 以来,Java 获得
了极大的成功,这主要是因为 Java 把它的语言优势更多的落实在程序员的应用方面,而不 是放在机器上,这使得软件开发的难度明显降低。但是,Andreessen 也提到,与从前相比, Java 现在已经增加了很多并不令人喜欢的特性。 Java 在过去数年来一直比 C 和 C++更易使用,直到最近变得复杂了。Andreessen 提到,现 在有人认为它甚至比 C++还难学。(Java)简易性的年代已经过去了:“PHP 现在正处在比 Java 更有利的环境态势中获得发展。” 这些看法或许不会被 Java 的拥护者所认同 -- 他们中的大多数来自于由数百万 程序员和 数百家公司组成的,掌控软件前途的 Java 社团。 但即使在 IBM,那些曾着力把 Java 带进服务器以及以 Java 为核心的 WebSphere 服务器软 件的高层人员,现在也看到了 PHP 的优势超越了 Java 。 “简易性是它最大的特点。” IBM 正处发展中的 IT 集团的副总裁 Rod Smith 提到,PHP 在一个报告会上引起了 IBM 的关注。”他们并不着力于增加语言特征去和其它的语言竞争, “ 而代之以 ”简单的方式,而不是很不幸的,我们在 Java 身上曾做过的方式。 PHP 是一个开源软件,它包括一个引擎用于简化调用 PHP 脚本的程序,和一个大的预建脚 本库。(PHP)众多的发展都由 Zend 公司掌控,后者还出售 PHP 产品包,编程工具和服务。 1994 年,Rasmus Lerdorf 首次设计出了 PHP 程序设计语言。 1995 年 6 月,Rasmus Lerdorf 在 Usenet 新闻组 comp.infosystems.www.authoring.cgi 上发 布了 PHP 1.0 声明。 1996 年 4 月,Rasmus Lerdorf 在 Usenet 新闻组 comp.infosystems.www.authoring.cgi 上发 布了 PHP 第二版声明。相比 PHP 1 单纯的标签置换代码,PHP 第二版含有了可以处理更复 杂的嵌入式标签语言的解析程序。 1997 年,Tel Aviv 公司的 Zeev Suraski 和 Andi Gutmans 自愿重新编写了底层的解析引 擎,其他很多人也自愿加入了 PHP 的其它部分而工作,从此 PHP 成为了真正意义上的开源 项目。 1998 年 6 月,PHP.net 发布了 PHP 3.0 声明。发布以后,用户数量才真正开始了飞涨。 2000 年 5 月 22 日,PHP 4.0 发布。该版本的开发是由希望对 PHP 的体系结构做一些基 本改变的开发者推动的,这些改变包括将语言和 Web 服务器之间的层次抽象化,并且加入 了线程安全机制,加入了更先进的两阶段解析与执行标签解析系统。这个新的解析程序依然 由 Zeev Suraski 和 Andi Gutmans 编写,并且被命名为 Zend 引擎。 2004 年 7 月 13 日,PHP 5.0 发布。该版本以 Zend 引擎 II 为引擎, 并且加入了新功能如 PHP Data Objects (PDO)。 2004 年 7 月 13 日,PHP 5.0 发布.该版本以 Zend 引擎 II 为引擎, 并且加入了新功能如 PHP Data Objects (PDO)。 狂热的程序员在电脑界并不新鲜,他们坚持要建立自己的产品作为基准平台。事实上, Microsoft 有很多广受欢迎的,开发者易用的编程工具,它们的成功主要归功于 Windows 平 台。 PHP 已被广泛使用,目前已有大约 2 千 2 百万网页使用 PHP,数量还在稳步增长。大约 450 个程序员有权威去审核软件的改进。主要使用 PHP 的企业包括 Yahoo, Lufthansa 和 Deutsche Telekom's T-Online. PHP 比 Java 的应用范围窄多了,(Java)不仅可用于 Web 服务器,而且还可以用于 PC,手机, 带芯片的支付卡等很多设施。Java 其中的一些技术,如 JSP,倒是像 PHP 一样处理同样的 事情。 Java 和 PHP 是在同一竞争水平,(Java)现在领先 “ Eclipse 的总经理 MikeMilinkovich 在 一个报告会上说。Eclipse 是一个开源编程工具,长期支持 Java,现在同时支持 PHP。” 我
期盼 PHP 在市场上能紧追猛赶(Java)。 Java 和 PHP 之间也在相互靠拢。Oracle,作为一家同时售卖 Java 服务器软件和其自身数据 库软件可同样用于 Java 或 PHP 的公司,也是那些在服务于 Java 之余还致力于协助 PHP 的 企业中的一员。Oracle 产品战略副总裁 KenJacobs 在一个会议上讲,Java 的 223 特性要求“ 将 帮助在 Java 社区和 PHP 社区之间搭建桥梁。” 即便是 Andreessen,他刚协助发起一个叫 Ning 的应用,用于在线交换图片,信息和其他内 容,也知道 Java 的地位。 "我的新公司正设法把 Java 和 PHP 整合起来。这需要巨大的投入。" 他谈到他们的技术决 策。“我们系统的核心是 Java 做的。就像一个操作系统,像一个系统编程项目。在它上面有 一个应用层 -- 实际上你看到的一切都是用 PHP 做的。” PHP,就像 Linux 和 Apache 的开源项目一样,现在已经受到了电脑产业巨头的亲睐。 IBM 和 Oracle 正致力于让 PHP 应用从它们的数据库提取信息,他们的背书是非常重要的,zend CEO Doron Gerstel 说。 "IBM 和 Oracle 支持它的事实--给了 IT 用户一个(巨大的)信心保证。巨头都支持它,那它一 定是好东西 " Gerstel 在一个报告会上说。 PHP 在预期 11 月初推出(译者注:此文写于 05 年)的新版 5.1 里,将包括一个更快的引擎来 处理 PHP 脚本,PHP 的创造者和 Zend 的共同奠基人 Zeev Suraski 说。还将包括一个底层的 “数据抽象层”以便利于 PHP 和不同的数据库连接,一个高水平层用于与 XML 数据交换, 后者产生和服务于 Web 服务件(Web services)。 版本 6,预期在 2006 年推出,将支持 Unicode 字符解码,(Unicode)支持广泛的字母,使系 统的多国应用能更简易地实现。 Andreessen 说他相信 Web 是最多新应用竞逐的场所,部分原因在于 Web 应用的即时性,避 开了桌面软件广泛性的挑战。 "Microsoft 讲了很多关于 Avalon(Windows Vista 的显示技术)和扁平客户(fat clients)。但问题 在于你非得等到系统已装在机子上,才能用到。 在 Web 模式里,就不用了。" Andreessen 说,”毫无疑问,Web 模式将统领今后(软件应用) 的 10 年,20 年,30 年。" 现在 PC 上正发生一些有趣的变化,但只出现在 Web 溜览器那些依赖互联网数据和服务的应 用上。(这里)Java 再次落后于与其无关的脚本技术,JavaScript 和其衍生物,可产生诱人用 户界面的 AJAX 技术。 JavaScript,现更连同 AJAX 一起,跟 Java 相比,一直是溜览器客户端开发的标准方式。 Andreessen 说,”Java applets 在溜览器上从未达到我们期望的深度。 当然不是每个人都有同样的看法。Google 在溜览器上用了一些前沿技术如 AJAX,但其 CEO Eric Schmidt 本周初与 Sun 的 CEO Scott McNealy 会面时宣布,Java 的桌面版将搭载 Google 的工具栏。 "在公司内部 Java 运行环境(JRE)之多令我吃惊,要么是 CIO(直接)用它(JRE)来标准化了,要 么是足够的应用让 CIO 觉得 JRE 应该成为公司软件架构的标准",Schmidt 在 Sun-Google 会 谈中讲到。作为夥伴,Google 将协助发展 Java。 Netscape 着力推动用 JavaScript 来开发超过 HTML 标准许可的,更变化多端的网页,而且完 全不需要困难的 Java 语言,Andreessen 提到。“我们要把 JavaScript 作连接 HTML 和 Java 的桥梁,这是一场与 Sun 公司巨大无比的战斗。” Andreessen 说,“他们(Sun 公司)要疯了, 在我告诉他们这桥梁的名字叫 JavaScript 时,他们疯得更厉害了。” Java 不是唯一失诺的客户软件,Macromedia 公司的 Flash,是一种能在溜览器上产生动画, 声音,电影等一些耀眼夺目的软件应用,也在榜内。
"我认为 Flash 是一项最令人激动的技术,它已很接近成功的边缘,但就是没有成功。 “ Andreessen 说到。 [全文完] 附录 C 创建数据库代码 -- -- 数据库名: `student` -- -- -- 表的结构 `std_award` -- CREATE TABLE IF NOT EXISTS `std_award` ( `award_id` int(11) NOT NULL AUTO_INCREMENT, `user_number` bigint(15) NOT NULL, `aw_date` date NOT NULL,
`aw_from` varchar(20) NOT NULL, `aw_name` varchar(20) NOT NULL, `aw_level` varchar(20) NOT NULL, `aw_number` varchar(20) NOT NULL, `aw_order` varchar(20) NOT NULL, `action_date` datetime NOT NULL, `action_from` varchar(30) NOT NULL, `review_status` int(3) NOT NULL DEFAULT '0', `class_name` varchar(100) NOT NULL, `class_department` varchar(100) NOT NULL, `class_specialty` varchar(100) NOT NULL, PRIMARY KEY (`award_id`) ) ENGINE=MyISAM DEFAULT CHARSET=gbk ; -- -------------------------------------------------------- -- -- 表的结构 `std_button` -- CREATE TABLE IF NOT EXISTS `std_button` ( `button_id` int(11) NOT NULL AUTO_INCREMENT, `button_value` int(10) NOT NULL DEFAULT '0', `button_reason` varchar(200) NOT NULL, PRIMARY KEY (`button_id`) ) ENGINE=MyISAM DEFAULT CHARSET=gbk ; -- -------------------------------------------------------- -- -- 表的结构 `std_class` -- CREATE TABLE IF NOT EXISTS `std_class` ( `class_pid` int(15) NOT NULL AUTO_INCREMENT, `class_id` bigint(15) NOT NULL, `class_name` varchar(100) NOT NULL, `class_department` varchar(100) NOT NULL, `class_specialty` varchar(100) NOT NULL, `class_educationlen` int(3) NOT NULL, `class_studentnum` int(10) NOT NULL, PRIMARY KEY (`class_pid`) ) ENGINE=MyISAM DEFAULT CHARSET=gbk ; -- -------------------------------------------------------- -- -- 表的结构 `std_confirm` -- CREATE TABLE IF NOT EXISTS `std_confirm` ( `confirm_id` int(11) NOT NULL AUTO_INCREMENT,
`confirm_sort` varchar(30) NOT NULL, `confirm_username` varchar(30) NOT NULL, `confirm_post` varchar(30) NOT NULL, `confirm_stdnumber` varchar(15) NOT NULL, `confirm_stdname` varchar(30) NOT NULL, `confirm_stdclass` varchar(30) NOT NULL, `confirm_stdcollege` varchar(30) NOT NULL, `confirm_time` varchar(25) NOT NULL, `confirm_reason` longtext NOT NULL, `confirm_infoid` int(10) NOT NULL, `confirm_status` varchar(10) NOT NULL DEFAULT '0', PRIMARY KEY (`confirm_id`) ) ENGINE=MyISAM DEFAULT CHARSET=gbk ; -- -------------------------------------------------------- -- -- 表的结构 `std_enterinfo` -- CREATE TABLE IF NOT EXISTS `std_enterinfo` ( `enterinfo_id` int(11) NOT NULL AUTO_INCREMENT, `user_number` bigint(15) NOT NULL, `enterinfo_from` varchar(50) NOT NULL, `enterinfo_chinese` varchar(20) NOT NULL, `enterinfo_math` varchar(20) NOT NULL, `enterinfo_english` varchar(20) NOT NULL, `enterinfo_zonghe` varchar(20) NOT NULL, `enterinfo_sum` varchar(20) NOT NULL, `action_date` datetime NOT NULL, `action_from` varchar(30) NOT NULL, `review_status` int(3) NOT NULL DEFAULT '0', `class_name` varchar(100) NOT NULL, `class_department` varchar(100) NOT NULL, `class_specialty` varchar(100) NOT NULL, PRIMARY KEY (`enterinfo_id`) ) ENGINE=MyISAM DEFAULT CHARSET=gbk ; -- -------------------------------------------------------- -- -- 表的结构 `std_gathermoney` -- CREATE TABLE IF NOT EXISTS `std_gathermoney` ( `gathermoney_id` int(11) NOT NULL AUTO_INCREMENT, `user_number` bigint(15) NOT NULL, `gathermoney_ymoney` double NOT NULL, `gathermoney_nmoney` double NOT NULL,
分享到:
收藏