本文介绍了php cli和php cgi有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
一个非常基本的问题.我刚刚在笔记本电脑上WAMP服务器的bin文件夹中找到了两个可执行文件php-cgi.exe
和php.exe
.我正在学习PHP,无法弄清差异.他们之间有什么区别?
A very basic question for you. I just found two executable files php-cgi.exe
and php.exe
in the bin folder of the WAMP server on my laptop. I am learning PHP and could not figure out the difference. What is difference between them?
推荐答案
PHP CLI是PHP的命令行界面(例如,用于创建独立的应用程序)
PHP CGI是PHP的通用网关接口(例如,对于Web应用程序)
PHP CLI is the command-line interface for PHP (e.g. for creating standalone applications)
PHP CGI is the common gateway interface for PHP (e.g. for web applications)
这篇关于php cli和php cgi有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!