3 ms·
PHP is a perfect language for webdev and automation: much faster and lightweight than python, good package ecosystem. I do all my process automation tasks in P
by somurzakov 6y ago
PHP is a perfect language for webdev and automation: much faster and lightweight than python, good package ecosystem.
I do all my process automation tasks in PHP and it's been such a pleasure.
- jjice 6y agoIt's situations like that where I'd like a way to write <?python And dump some python code the same what you'd do php and have my web server serve it up. It would be handy, but I'm sure the uses cases are limited.
- ralph87 6y agoThis style of embedding was popular at one point in Python's evolution before Django appeared. You can probably find 10 such systems in this list: https://wiki.python.org/moin/WebFrameworks#Discontinued.2FInactive_Frameworks https://wiki.python.org/moin/WebFrameworks#Discontinued.2FIn... There are probably a few still around
- dotancohen 6y agoIf you are sufficiently motivated, you might look into Emac's "babel" scripts, which can run Python embedded in org-mode files. You could use mod_wsgi in Apache to set your .pml (Python Markup Language, I just made that up) files to be parsed.
- acomjean 6y agoI too use php for automation. It has a lot of "built ins" that are always there (reading csv files for example/ json reading), which I find makes things a little easier for a lot of simple things. if i have to crunch numbers in a script I like R, or Python w/ Pandas