php cli cgi 区别,php cli和php cgi有什么區別?

11

This might give you a broader understanding of their difference:

這可能會讓您更廣泛地了解它們之間的差異:

CGI: (common gateway interface) It is a specification "protocol" for transferring information between a Web server and a CGI program.

CGI :(公共網關接口)它是用於在Web服務器和CGI程序之間傳輸信息的規范“協議”。

A CGI program is any program designed to accept and return data that conforms to the CGI specification.

CGI程序是任何旨在接受和返回符合CGI規范的數據的程序。

Basically it's a way to run a server side script (PHP, Perl, Python,...) when a HTTP request comes.

基本上,它是一種在HTTP請求到來時運行服務器端腳本(PHP,Perl,Python,...)的方法。

CGI is very slow in comparison to other alternatives.

與其他替代方案相比,CGI非常緩慢。

FastCGI: is a better CGI.

FastCGI:是一個更好的CGI。

Fast CGI is a different approach with much faster results.

快速CGI是一種不同的方法,結果更快。

It is a CGI with only a few extensions.

這是一個只有少數擴展的CGI。

FastCGI implementation isn’t available anymore, in favor of the PHP-FPM.

FastCGI實現不再可用,支持PHP-FPM。

PHP-FPM: (FastCGI Process Manager), it's a better FastCGI implementation than the old FastCGI.

PHP-FPM:(FastCGI Process Manager),它比舊的FastCGI更好的FastCGI實現。

It runs as a standalone FastCGI server.

它作為獨立的FastCGI服務器運行。

In general it's a PHP interface for the web servers (Apache, Nginx..) to allows Web Server to interact with PHP.

通常,它是Web服務器(Apache,Nginx ..)的PHP接口,允許Web Server與PHP交互。

Unlike the PHP-CLI which is a command line interface for PHP to allows Users to interact with PHP via terminal.

與PHP-CLI不同,后者是PHP的命令行界面,允許用戶通過終端與PHP進行交互。

mod_php: an Apache module to run PHP.

mod_php:運行PHP的Apache模塊。

It execute PHP scripts inside the Web Server directly as part of the web server without communicating with a CGI program.

它直接在Web服務器中執行PHP腳本,作為Web服務器的一部分,而無需與CGI程序通信。

mod_SuPHP: is similar to mod_php but can change the user/group that the process runs under.

mod_SuPHP:類似於mod_php,但可以更改進程運行的用戶/組。

Basically it address some problems of mod_php related to permissions.

基本上它解決了與權限相關的mod_php的一些問題。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值