Log in

No account? Create an account

PHP evil/not evil

« previous entry | next entry »
Nov. 22nd, 2009 | 10:15 pm

More and more I find myself just not bothering with Perl at all, and writing any script I produce in PHP, no matter what it is. I use a lot of PHP for work and also for hobbyism, and hey PHP is standard with OS X too. But there is a tiny core of remaining shame at using what was really designed as a web scripting language to rename pictures with the correct colour of kitten or whatever other rubbish I script for.


Is it bad to script in PHP offline?

No, it's fine, forget it, why are you even asking this?
You should really be using perl or something more designed for local use, but it's not so bad I suppose
Yes, it's bad, you should only use PHP for websites, like it was meant for
Not only is it bad to use it for local scripting it's also bad to use it online too, horrible language

Link | Leave a comment |

Comments {1}


(no subject)

from: infov0re
date: Nov. 22nd, 2009 10:24 pm (UTC)

I've said "no, it's fine" because I am increasingly of the opinion it's just not worth being didactic about stuff like this (and I say that as a primarily Ruby/Rails programmer); at the same time, my actual answer would be "no, but it does depend what you're doing". I hate using PHP from the command line, just because it's so terribly designed for doing so; it really does want to be run as pages hit on a server and processed by mod_php. For things that might need a little form, though, or some kind of interaction, it's great, but for pure "better alternative to bash scripts", I'm definitely not convinced.

So: I think my answer has changed to the second option.

Reply | Thread