4 ms·
OP here. That's what I meant. We often compare PHP to e.g. Ruby/Rails, Python/Django...but what we're really thinking of when we think of PHP is CGI. Most of t
by mmahemoff 13y ago
OP here. That's what I meant. We often compare PHP to e.g. Ruby/Rails, Python/Django...but what we're really thinking of when we think of PHP is CGI.
Most of the same things we say about PHP deployment (it's easy, can be done in one file, etc) could equally be applied to writing CGI scripts in Ruby or Python. PHP is just a more extreme example of CGI, and arguably easier, because there's so much support for PHP-based CGI compared to Python/Ruby/Node CGI.
- oinksoft 13y agoI'm afraid you're misinformed. When we think of PHP, most of us are thinking of PHP embedded in the Apache web server using the mod_php extension. This is what almost everybody was using until very recently when FastCGI gained some popularity and people started using PHP-FPM with nginx. Pretty much any PHP host will be running a LAMP stack with mod_php.
- mmahemoff 13y agoOK most hosts will be running mod_php or fcgi and not pure CGI. I just mean CGI as a shorthand for this approach. It doesn't make a difference from the developer's perspective on a shared host. It's still just "here's a file I created, now point your browser at it".