Ad
elijah
asked May 12 2017
Answer
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
jagannatharumugam
asked May 12 2017
edited Oct 05 2018
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.