php能做什么的,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.

服务端操作也包括处理来自客户端的数据并把这些数据存储在服务器里。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值