加载中…
个人资料
英语三百天
英语三百天
  • 博客等级:
  • 博客积分:0
  • 博客访问:114,826
  • 关注人气:153
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
相关博文
推荐博文
正文 字体大小:

PHP能做什么

(2007-02-22 13:48:49)
标签:

中英对照

php手册

分类: 阅读与常识 —— 英汉对照

PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies.
PHP主要用于服务端的编脚本,可以起到CGI程序的作用,比如:收集表格数据,产生动态页面内容,或者收发点心。

There are three main areas where PHP scripts are used.

主要在三个方面使用PHP脚本。

■Server-side scripting. This is the most traditional and main target field for PHP. You need three things to make this work. The PHP parser (CGI or server module), a web server and a web browser. You need to run the web server, with a connected PHP installation. You can access the PHP program output with a web browser, viewing the PHP page through the server.
服务端编脚本。这是PHP最传统和最主要的目的。要做此事,需要三件东西:PHP解析器(CGI或者服务器数据包),网页服务器,网页浏览器。要运行装有连接了PHP的网页服务器。用网页浏览器调用PHP程序,通过服务器,查看PHP文件。

■Command line scripting. You can make a PHP script to run it without any server or browser. You only need the PHP parser to use it this way. These scripts can also be used for simple text processing tasks.
命令行编脚本。编写和运行这种PHP脚本,可以不用浏览器或者服务器。这样就是用PHP解析器来使用这种PHP脚本。也可以用这种脚本来完成简单的文本处理任务。

■Writing desktop applications. PHP is probably not the very best language to create a desktop application with a graphical user interface, but if you know PHP very well, and would like to use some advanced PHP features in your client-side applications you can also use PHP-GTK to write such programs. You also have the ability to write cross-platform applications this way.
编写终端应用程序。对于图形用户界面,编写终端应用程序,PHP也许不是最好的语言,但是,如果你非常熟悉PHP,而且喜欢在客户端应用程序里使用一些PHP的高级性能,那么,就可以用PHP-GTK来编写此类程序。这样也可以编写跨平台应用程序。

With PHP you are not limited to output HTML. PHP's abilities includes outputting images, PDF files and even Flash movies generated on the fly. You can also output easily any text, such as XHTML and any other XML file. PHP can autogenerate these files, and save them in the file system, instead of printing it out, forming a server-side cache for your dynamic content.

用PHP,可以不受限制输出HTML。PHP的能力包括输出图像、PDF文件、视频(该视频是由fly产生的)。可以很容易输出文本,比如XHTML及其它XML文件。PHP可以自动产生这些文件,把这些文件保存在文件系统里,不用打印输出,构成服务端储藏间存放动态内容。

 

注释

1、cookie点心,计算机‘黑话’(行话),其意思是微量文本代码,由网页浏览器把它存储在用户的计算机里。
2、CGI is acronym for Common Gateway Interface.
    CGI是“通用接口”的缩写。

3、Server-side服务端,是指由服务器软件来完成的操作,常见的是服务器软件在远程的网页服务器里运行。

     Server-side operations also include processing and storage of data from a client to a server.
     服务端操作也包括处理来自客户端的数据并把这些数据存储在服务器里。

 

0

阅读 评论 收藏 转载 喜欢 打印举报/Report
  • 评论加载中,请稍候...
发评论

    发评论

    以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

      

    新浪BLOG意见反馈留言板 欢迎批评指正

    新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

    新浪公司 版权所有