AMP AMP
AMP
0
AMP

Difference between php-CGi and php-CLI

May I know what is the difference between php-CGi and php-CLI and also i saw SAPI what was that.. How it works in my php, pls expain since am newbie to php backend.

Kali Linux Php Add a comment
a sample image
elijah
asked May 12 2017

Answer

AMP
0
AMP

php-cli will run PHP on command-line only. Whereas php-cgi have HTTP headers that helps to run PHP in Web applications.

In simple, PHP-cli for standalone applications PHP-cgi for web applications

Add a comment
a sample image
jagannatharumugam
asked May 12 2017
edited Oct 05 2018
Post your Answer