3 ms·
PHP is now a days ran as fcgi, just like how Python, Ruby or Go runs. The Apache mod days have been left in the past. That you can't render a python script.py
by habibur 4y ago
PHP is now a days ran as fcgi, just like how Python, Ruby or Go runs. The Apache mod days have been left in the past.
That you can't render a python script.py like php's script.php more likely has to do with language construction difference between the two.
- tyingq 4y ago>> That you can't render a python script.py like php's script.php more likely has to do with language construction difference between the two. You can, actually, and how close it is to the way php works is all to do with the fastcgi handler, and little to do with the language. Wsgi has configuration like WSGIScriptAlias, WSGIScriptAliasMatch, and WSGIScriptReloading that would make it almost exactly the same as default php behavior. I suppose it may not run efficiently that way, but it would run. And you don't have the built-in html templating with php, where any html file is also a valid php file.
- habibur 4y ago> I suppose it may not run efficiently that way, but it would run. And you don't have the built-in html templating with php, where any html file is also a valid php file. Indeed. On an abstract level anything can be done. Efficiency is the question.