PHP At 20: From Pet Project To Powerhouse
snydeq writes: Ben Ramsey provides a look at the rise of PHP, the one-time 'silly little project' that has transformed into a Web powerhouse, thanks to flexibility, pragmatism, and a vibrant community of Web devs. "Those early days speak volumes about PHP's impact on Web development. Back then, our options were limited when it came to server-side processing for Web apps. PHP stepped in to fill our need for a tool that would enable us to do dynamic things on the Web. That practical flexibility captured our imaginations, and PHP has since grown up with the Web. Now powering more than 80 percent of the Web, PHP has matured into a scripting language that is especially suited to solve the Web problem. Its unique pedigree tells a story of pragmatism over theory and problem solving over purity."
The great thing about PHP is that it's the one language that native, Java, .NET, python and ruby guys can all make fun of together.
Here's to another 20 years (or maybe 19, depends)!
Mod me down, my New Earth Global Warmingist friends!
This almost makes me wish Dice would go back to starting its flame-wars with stories on gender inequality.
Hello world in PHP:
No Bullshit Boilerplate (TM), no needing 5KLoC of code and configuration, no application server to babysit 24/7, no need for catalina+tomcat+jakarta+jre+struts+hibernate+Xmxwtfbbq16GB, just load one module and every single customer sharing the server can use it... No need to understand the CGI protocol, no need to understand the HTTP protocol, no need to understand HTML even.
... blames his tools. Crap code an be written in any language. Good code can be written in PHP. While not my first choice of languages, I have found myself on PHP projects and been fairly comfortable using it although during moments of frustration put in comments such as "These following 10 lines could be written in the following one line of Perl...".
In a band? Use WheresTheGig for free.
It's definitely a house, but I'd disagree about the power part.
Confucius say, "Find worm in apple - bad. Find half a worm - worse."
PHP is Turing complete, so it's technically possible to write anything in PHP that you could write in another language. That seems to be about the most it's got going for it. PHP does nothing to help programmers write sane, maintainable code. It's almost impossible to develop without having a browser tab open to php.net ("The online docs are great!" "Well, they'd have to be."). There is zero consistency with things like argument order. Dangerous legacy concepts like "mysql_real_escape_string" are only recently deprecated and don't have a set removal schedule. It's a one-trick pony that's nearly useless outside its niche as a web page generation language. It's just a mess - a dangerous, unmaintainable mess.
I won't refuse to use an app just because it's written in PHP, but I do heavily weight it when comparing alternatives. PHP is a powerhouse in much the same way as McDonald's. It may be ubiquitous, but it still sucks and you have to question the judgement of anyone who chooses it to start a new project.
Dewey, what part of this looks like authorities should be involved?
I used the original, or close to it.
In 1995, I worked for a company in San Diego (MediaShare) that did Tesco's first online store.
MediaShare had a publishing tool called ProductBase, that put product details in a database, and you could publish to print or CD-ROM (remember those?). I proposed to my boss that we could also easily publish to HTML, and he let me explore it.
This turned ProductBase into basically a static-site generator, and Mediashare built some sites for some of their existing clients ("the threes" - 3COM and 3M - we put the 3M Adhesives catalog and 3Com's catalog of network products online for the first time) and some new ones.
One of the new ones was Tesco, and I built a little shopping cart with a very-close-to-1.0 PHP script running under Netscape Server CGI.
I would have never thought that PHP would still be kicking around this many years later. That was the last time I ever used PHP.
The author had no pretensions about PHP. It was a simple little script to help him with his personal home page, and he admitted his lack of programming expertise. Others turned it into a Frankenstein's monster.
Neither html or xml are programming languages. They do nothing until a programming language comes along.
putting the 'B' in LGBTQ+
PHP does not power 80% of the web, it is merely present on at least one server behind 80% of TLDs. That's not the same thing.
So what? If you don't like it, don't use it.
How would one go about writing an extension for an existing large codebase, such as phpBB, MediaWiki, or WordPress, in a language other than PHP? And it's likely that some of these codebases began years ago when shared web hosts charged extra for languages other than PHP.
http://modernperlbooks.com/boo...
Please define "programmer" for us.
BeauHD. Worst editor since kdawson.
Anyone using PHP is a non-programmer by definition.
I'm a professional software engineer working on OS-level software for a heavyweight in the tech industry. I also use php in a non-work context. And I actually enjoy it
Guess you'll have to peddle your absolutisms elsewhere.
People who say "sheeple" have about as much sophistication as an AOL user, and in fact are probably actually AOL users.
"Someone who writes PHP and LIKES IT."
Node exists because it can, not because it should.....
Actually, you're mistaken. I understand exactly what I need to do to get the results I want, and doing it in PHP earned me a nice living. Using PHP (the LAMP stack, really) has allowed me to work for myself, create businesses, earn money, and live pretty well. I have a hard time understanding what you don't like about that, unless it's based in jealousy. If you don't like PHP, don't use it. You're welcome to use whatever programming language you like without fear of me telling you why you're "wrong".
Just cruising through this digital world at 33 1/3 rpm...