A Decade of PHP 452
digidave writes "It was slow to catch and a lot of people didn't get it. A lot of people still don't get it, but you can't argue with its success. June 8th, 2005 marks the tenth anniversary of PHP. Here's to ten more wonderful and exciting years."
Congratulations are in order! (Score:4, Insightful)
It was slow to catch and a lot of people didn't get it.
Ok, I'm with the slow-to-catch-on part, but what's this about people not getting it? The concept had to be one of the simplest ever designed. (Thus the reason why it's so common across web scripting languages.) Here is your HTML, here's a bit of Unix scripting langauge. Simple, see?
On a slightly different topic, one wishlist item that I would like to see in PHP is Abstract Database Access. It's not really a good thing to hard code your application to a specific database, especially if it's a redistributable application. (e.g. PHPBB) The ODBC calls sort of solve this, but they do require that ODBC is installed, properly configured, and compiled into your copy of PHP. (Does anyone know if any distros now have ODBC as a "standard" library?) This assumption can't be made for most OSS applications, so they tend to tell you to just use MySQL.
Re:Congratulations are in order! (Score:5, Informative)
Re:Congratulations are in order! (Score:5, Informative)
For others, PEAR can be found here:
PEAR Class Repository [php.net]
The Database classes of PEAR appear to be documented here:
Database Package [php.net]
Looking over the DB classes, it looks like they provide a fairly decent abstraction. Thanks Quinto, that will definitely be nice for future PHP projects.
There's also ADOdb (Score:4, Informative)
I've never used PEAR, so I can't compare the two, but ADOdb is quite nice from my experience.
Re:Congratulations are in order! (Score:3, Funny)
Actually, what I'd like to see is bitwise-operations on strings - my Ogg Vorbis decoder written in PHP is currently languishing at just a bare-bones Ogg demuxer 'cos unpacking all the Vorbis packets proved just too fiddly...
Re:Congratulations are in order! (Score:5, Insightful)
I realize that PHP can be cool at times, but one has to use the right tool for the job at hand.
Re:Congratulations are in order! (Score:2)
That was precisely the reason I chose PHP - because it was absolutely the wrong tool for the job.
Well, maybe not quite as bad as some. Anyone want a port to Javascript? BBC Basic? Befunge?
Re:Congratulations are in order! (Score:2)
Re:Congratulations are in order! (Score:2, Insightful)
For most simple apps (90% of what PHP apps are) you should stick with SQL-92 syntax when you write your queries. Then just write yourself some generic functions that you pass your query and a connection string to. The functions determine the db-specific query execution code to use. I always use parameterized queries. So I've even got functions to switch the parameter character ('?' or '@' etc) to the syntax of the target db.
Re:Congratulations are in order! (Score:4, Interesting)
Re:Congratulations are in order! (Score:3)
The "lowest common denominator" data storage/retrieval does not actually mean you can use your database like a Relational Database Management System.
If you don't want your database to do what Relational Database Management Systems do, and you're just going to use it for flatfile-like queries, why not just use SQL-Lite? SQL-Lite has familiar syntax, but can be bundled with the application. You don't have to worry about what databa
Re:Congratulations are in order! (Score:5, Interesting)
For example, if you use a database abstraction, you have to make a lot of performace- or feature-robbing choices. There are still hosting situations where MySQL is still on 3.23, so you can't use the better parts of the InnoDB storage engine. So no foreign key constraints, no stored procedures.
On the other hand, if you do hardcode for PostgreSQL, you put a burden on the end user, sure--but in return, you're giving them a more robust, more featureful application that is easier to support and maintain. I personally like PostgreSQL because it seems less haphazard than MySQL, but you could very easily do this with MySQL, so long as you restrict yourself to the later, non-crippled versions.
The Arsdigita folks did this with Oracle. Leaning on a $tens-of-thousands database application may put you out of the realm of everyday developers, but it's far from insane.
This is "all the time I've spent dealing with other people's code that doesn't have a foreign key to be found and all integrity checking is done in the PHP code" talking. It's infuriating.
Re:Congratulations are in order! (Score:3, Informative)
Not so good an idea (Score:4, Insightful)
Say, for example a "real" DBA writes a shopping cart schema / application, using a "genuine" (ACID-compliant) DB, the scalability will be phenomenal; The speed will be incredible because much of the code will be handed TO the database -- not parsed and parsed and parsed away at the PHP/Java/whatever-script level.
Now, let's say a "wannabe" DBA writes a shopping cart schema / application using MySQL. Then to "help" the Postgres folks out, the DBA adds an abstration layer. Woo hoo!!! Useless... Essentially, I'm offered a way to drive a Ferari (Postgres) down the sidewalk, negotiating with pedestrians all day, as if I were traveling by skateboard (MySQL).
Unfortunately, the number of examples of the later are a dime a dozen. The number of examples of the former are near zero. Think about why you'd even WANT abstraction. In most real-world cases it's rather useless and undesireable.
Database independence (Score:3, Insightful)
But it should be done by using standard SQL.
Unfortunately, that is not a losing battle, it is a lost battle.
The database vendors doesn't care about standard SQL.
Re:Database independence (Score:3, Insightful)
Some do, some don't. It's now possible to write 100% ANSI compliant systems in Oracle and MS-SQL amongst others (those are the two I know of for sure, I also know there are others). Obviously you can choose to use non-ANSI compliant code if you so wish. Sometimes there are good reasons to do so, using supplied packages to perform tasks that would otherwise have to be coded is one. As noted earlier, writing your code to fit a particular RDBMS will often result in faster code. It may also give you a fas
Re:Database independence (Score:3, Informative)
http://developer.mimer.com/validator/comparison/u
Re:Database independence (Score:3, Informative)
Looks interesting. It doesn't appear to be 100% accurate though. There are a number of features (e.g. E051-08, E021-06 and E021-04) that it says that Oracle 9 does not have but I know it does, or at least it has something matching the description given (maybe I'm misunderstanding something).
Stephen
Re:Database independence (Score:3, Informative)
It may be really picky and unforgiving, however, and even a minor deviation from the standard might disqualify a feature from being listed as supported for a certain database. I can't say that that isn't the case. All I'm saying is that they guys that made the list know what they are talking about.
Åke Persson is also a compiler expert and he wrote this tool:
Re:Congratulations are in order! (Score:3, Insightful)
I've never understood the fanaticism of database abstraction. There's good reason to hardcode to a specific database, especially if you hardcode to a Free database like PostgreSQL.
You took the words right outta my mouth. I tend to work on large projects, usually the app has its own server (or servers) to work on.
I've hard-coded to Postgres since 7.0 came out, and I've NEVER regretted it. The only problem I've had is when one of my clients demanded "cross-platform".
I had more problems with th
Re:Congratulations are in order! (Score:3, Insightful)
Good points in your reply. Thanks for that.
If I was interviewing someone and they presented me with sample code riddled with "pg_connect()" calls rather than abstracting that into its own library, my first question would be "tell me why it is bad to do this."
Well, it all depends, doesn't it?
First, there's a difference between coding an abstraction layer that facilitates interaction with your database, and coding an abstraction layer that handwaves away the peculiarities of any particular database.
PHP definitely does not follow the KISS principle (Score:5, Informative)
Are you smoking crack? PHP is more inconsistent than any other language I've encountered. I'm not disrespecting the team, as I'm sure they've worked hard, and it's great to celebrate ten years of an admittedly very useful language, but PHP is not an inherently easy language.. it's just one that lets you code sloppily and get away with it.
For a start, PHP functions seem to have no consistency at all. Sometimes you get verb/object, sometimes object/verb. Sometimes you get underscores, sometimes you don't. Consider.. is_object but isset. str_rot13 but strpos. php_uname but phpversion. There are hundreds of these. It's the reason I could never learn PHP, it's like learning Chinese, but I found Perl (and now Ruby) easy due to their relative consistency. Sometimes PHP uses "to", sometimes it uses "2".. huh what's that about?
Unlike Perl which has a few regular expression constructions and a handful of modifiers.. PHP has a whole glut of regular expression functions which have confusing names, some of which take certain modifiers, and some that don't. As someone who has mastered Perl's regular expressions I find it a major struggle when I have to tackle something in PHP (I admit, I've never 'learned' PHP, but I find it a very hard language to make quick fixes on for other people.. compared to, say, C, VB or Python, languages I don't know intimately but can easily hack).
PHP has thousands of core functions.. nuts! And why does PHP have such a bizarre lack of abstraction? PHP often has about 10 functions compared to other languages' single function.. with each of the 10 doing a slightly different thing. When it comes to being overly wordy and inconsistent, I doubt anything can beat PHP, but, well, I'd like to see someone bring up a language that is!
So if you were going to call any language "KISS", it'd be Ruby or Python.. but PHP? No way.
Re:PHP definitely does not follow the KISS princip (Score:2)
Nope, I'm just a realist. PHP was designed to be a web scripting language that wrapped Unix APIs. Nothing more, nothing less. I in no way agree with the fanaticism surrounding PHP (it doesn't make a good general purpose language people!), but it does what it was designed for in a straightforward, simplistic fashion. I usually prefer to do things in JSP/Java, but if it's not an option for some reason then I prefer to u
Re:PHP definitely does not follow the KISS princip (Score:3, Insightful)
I would agree that PHP makes a decent web scripting language for basic tasks (polls, counter, guest book, a bit of remote inclusion), but I am horrified to see people actually using it for serious stuff like enterprise level systems. That sort of stuff makes the blood freeze. I feel really sorry for the corporations who get sucked into it.
Re:PHP definitely does not follow the KISS princip (Score:2, Insightful)
Re:PHP definitely does not follow the KISS princip (Score:3, Informative)
I've been working with ColdFusion for about 5 years now. My sites don't crash- and I get 10-20 million hits per month. Not huge, but a pretty good number. (No...this is not the site that is in my sig...)
I *might* get 2 or 3 'unhandled exceptions' in a day. And those are always caused by search engines that are hitting templates with bad queries. It is interesting to see the queries they send, "hmm...why did they decide t
Re:PHP definitely does not follow the KISS princip (Score:3, Insightful)
Re:PHP definitely does not follow the KISS princip (Score:5, Informative)
Just a quick point--you can use Perl's regular expressions in PHP. And that's usually what I see people doing. As a matter of fact, it is recommended in the PHP documentation that Perl's regular expressions be used: Note: preg_match(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg().
Wrong, wrong, wrong (Score:3, Insightful)
Nope. You can't. Well, you can. Well, sortof. Sometimes. With some syntactical exceptions, and lots of thinking about escape sequences, and passing parameters a different way. And that's the gotcha. You start thinking it's going to be the same -- and it's not.
Re:PHP definitely does not follow the KISS princip (Score:3, Informative)
CGI::Session [cpan.org].
Re:PHP definitely does not follow the KISS princip (Score:4, Insightful)
People underestimate the power of those two things. CPAN is the number one reason why PERL is still so popular.
Re:PHP definitely does not follow the KISS princip (Score:4, Insightful)
Most of the functions in the PHP distribution are named after a function that does the same thing in the C library that PHP uses to implement the feature. PHP is designed so that if you're familiar with the C library that it is using, you can very easily get the hang of the PHP version.
This doesn't excuse some of the weirdnesses in the core library, though -- str_rot13 (and the other string functions with underscores in them) is clearly wrong, as the earliest string functions followed the standard C library naming conventions.
To address your other examples: isset() is an operator that looks syntactically like a function, and would have been named in this fashion to mirror the other such operators (sizeof(), unset()). is_object() et al are functions that were implemented independently of this, and at the time there was no conflict. I see no excuse for the php_uname/phpversion difference.
PHP has thousands of core functions.. nuts! And why does PHP have such a bizarre lack of abstraction? PHP often has about 10 functions compared to other languages' single function.. with each of the 10 doing a slightly different thing. When it comes to being overly wordy and inconsistent, I doubt anything can beat PHP, but, well, I'd like to see someone bring up a language that is!
I don't like to nitpick, but... those aren't all core functions. They're just functions that are distributed with the core, kind of like the applications that come with a Linux distribution. You can build a stripped down PHP without them, if you want.
Re:Congratulations are in order! (Score:2)
Hear! Hear! Thx Rasmus. I still remember one of my co-workers first encouraging me to use PHP for CGI scripting about 5 years ago, and me saying "Nah, Perl works a-ok for me." Well I also used the Bourne Shell for CGI scripting once upon a time too and moved along.
PHP really is the right tool for the job of building websites. It was designed with that in mind, so that's not a slam against Perl in any way.
To be fair, I should really check out Python and Ruby soon... The great thing about PHP now is that
Re:Congratulations are in order! (Score:2)
Re:Congratulations are in order! (Score:4, Insightful)
When you can explain the core language and primary namespace to an interested programmer in under 30 minutes, I'll be glad to revisit the topic. Until then, Python is simple. Perl is even reasonable simple. PHP is not simple in any way, shape, or form (unless you're using the facetious Simple from SMTP, SNMP, and other horridly complex standards).
Re:Congratulations are in order! (Score:2)
What's not to get? (Score:3, Insightful)
-Jesse
Re:What's not to get? (Score:2)
Re: (Score:2)
Re:What's not to get? (Score:2)
-Jesse, still uses his C-64 on occasion.
Re:What's not to get? (Score:2)
Do these antiquities have any value?
Re:What's not to get? (Score:2)
The C-64, and probably VIC-20, versions were LOAD "*",8,1 for the attached disk drive.
-Charles
Re:What's not to get? (Score:2, Informative)
It did say in the manual that this would happen and how to get at the different data sources if you cared. {And you can do sneaky stuf
Good for them. (Score:4, Funny)
Re:Good for them. (Score:5, Funny)
You're absolutely right. I tried to do my PHP programming in BASIC once. Bad idea.
Re:Good for them. (Score:2)
-Jesse, not really old, but do like/use assembly daily.
I don't really like PHP that much... (Score:3, Insightful)
Re:I don't really like PHP that much... (Score:2)
Re:I don't really like PHP that much... (Score:2, Insightful)
PHP is good because it's easy. It might often not be the most sophisticated, structured, or easily maintained language, but it is often the quickest and simplest solution to a problem. In that respect it fills an important niche.
Re:I don't really like PHP that much... (Score:2)
What is so exciting about it? I can't find a single situation where it is better to use [Language X] than other programming languages. Why would anyone love [Language X]?
Every language has both strong and weak points. PHP is extremely easy to learn and works great for both web programming and simple command-line purposes. That is unless you are just trolling. (Why does PHP hate the internet?)
Congratulations PHP (Score:5, Funny)
Re:Congratulations PHP (Score:2)
Re:Congratulations PHP (Score:2)
Re:Congratulations PHP (Score:5, Insightful)
You're one of those people who don't get it. This is not a language issue. In the not-so-distant future, developers will think it crazy not to use an MVC web framework for their web applications.
Ruby on Rails just happens to be first with an elegant, easy-to-use, true-separation-of-concerns, MVC web application platform.
The Java, Python, and Perl (Catalyst) folks have seen the light and are busy working on Rails-style frameworks. Seems like the PHP community hasn't seen the need yet.
Re:Congratulations PHP (Score:4, Insightful)
You know, I heard the same thing about Java back in 1996 or so.
Don't get me wrong, Rails looks decent enough, but neither is it a panacea. You can put together a really fast RSS reader, or a DB-backed recipe application, but these are trivial applications. Solving trivial problems elegantly isn't worthless, but thus far I haven't seen any Rails projects that compare in scope to something like Zope, or Drupal or even PHPBB.
Going through the various How-Tos for Rails, I keep saying to myself, "...or, I could just download foo, which is written in Perl/PHP/Python/AWK, but already works and is proven and does the same thing." PHP hasn't seen the need for copying Rails because they have a robust and featureful set of applications already. Dropping everything and chasing the next sexy thing might be entertaining, but it doesn't do much to help me, the working Webmaster.
I guess I'm just suspicious of using MVC (or OOP, or some other trendy buzzword) as a talisman. It smacks of cheerleading, and accusing people of "not getting it" doesn't prove the point.
PHP vs JSP (Score:5, Interesting)
I tried PHP, but I didn't feel it gave me the rigid OO structure and sophisticated APIs I get from Java, JSPs & Servlets.
Not trolling, just saying I'm surprised that Java and Servlet hosting isn't as popular as PHP. I'm obviously missing some key point.
Sam
Re:PHP vs JSP (Score:5, Insightful)
but procedural is a valid way to structure your apps... especially for web-based ones where that have, by nature, a page-based model and a very linear flow. you can write serious software using php4 without oop!
Re:PHP vs JSP (Score:5, Insightful)
This is my basic gripe with PHP. It leads the unfortunate user down a path that suggests that each page is its own island, and any attempt to modularize or componentize that is, by PHP's nature, a secondary affair.
Take, as a counterpoint, something like TTK. Here, you are presented with a programming langauge in which you write your code, and a templating system in which you write pages for display and a set of tools for connecting the two.
It's not that a good programmer can't produce a workable system in PHP alone or PHP + other langauges (PHP backed by Perl or Java or C# is quite powerful, in fact), it's just that it seems that the majority of people writing PHP are hobbled by this unfortunate presentation of the language as a "page generator", and thus most of the code written in PHP is rewrite-fodder from day one.
As a templating system, PHP is quite nice, and I'd use it where appropriate.
Re:PHP vs JSP (Score:5, Insightful)
Re:PHP vs JSP (Score:3, Insightful)
Re:PHP vs JSP (Score:3, Informative)
Re:PHP vs JSP (Score:2)
Re:PHP vs JSP (Score:2)
After all that was done, well then it was up to if you liked Java or not. And I've come to realize that Java is a langua
Re:PHP vs JSP (Score:2)
The answer is: Two completely different markets.
JSP requires a minimum investment in hardware, resources, and server capabilities that PHP does not. JSP also tends to require more backend APIs than PHP, because you try to keep as much out of the JSP as possible. As a result, JSP tends to be the best solution for Mid to Enterprise class systems, while PHP makes a good choice for Per
Re:PHP vs JSP (Score:2)
Re:PHP vs JSP (Score:2)
The main reason, IMHO, is that PHP is much more easy to install on a typical Apache web server, and much more appropriate for mutualized hosting.
With PHP (as a module or CGI), once a HTTP request is finished, all the resources (memory, DB connections, file handles, etc.) are given back to the operating system. With Java, the JVM keeps running after a request, and might keep locks on resources without anyone noticing.
This is a key ad
Re:PHP vs JSP (Score:2)
It's not needed as noted , but if it helps you use the language then it's easy enough to imitate it .
Re:PHP vs JSP (Score:3, Funny)
Thanks for the career, PHP!! (Score:5, Insightful)
Re:Thanks for the career, PHP!! (Score:5, Insightful)
Student Suspended Over Suspected Use of PHP (Score:5, Funny)
One of pillars of success: manual (Score:5, Insightful)
So, in any way, PHP is such thing which just works.
Congrats!
Agreed - it's a great starter language (Score:2)
But I wanted to make a really cool web site for a game group I was in, and I dug into it. I found PHP, as it worked real easy with both apache and IIS.
I ran through some tutorials (there's a ton of them out there, online, free) and I started to get into it.
The PHP manual has a lot of information and detail about nearly everything the language can do. It's a reference but it's easy to read and you can sit down with it and learn a lot about PHP and programming in ge
Re:One of pillars of success: manual (Score:2, Informative)
As i recall, when i first started to get familiar with perl, i was using perl in 21 days, then switched to perldoc and cpan.org documentation.
Also, please note the difference between a manual, a book and a guide. Manuals don't necessarily need to be easy to understandable, just coherent and clear. They are intended for those already familiar with the language, or at least some degree familiar with it. Given that php has so many functions
Re:One of pillars of success: manual (Score:3, Insightful)
I think you got the causality backwards. If PHP's manual wasn't top-notch, then noone would ever be able to figure out the 15 variations on each function (each with arbitrarily different argument ordering). People didn't flock to the PHP manual because PHP is such a great language.
In other words, PHP leans on a strong document set just to make it usable. That's quite different than most other languages commonly in use.
PHP 1.0 - 2.0 - 3.0 ... (Score:2, Insightful)
I discovered and started using PHP by the time the first beta of PHP 2.0 had been released. What a pleasure this was to convert my old clunky C CGI scripts to PHP. No more compiling, no more mallocs. Weee
7 years (I think, maybe it's 6) later I'm still using PHP for everything at work, and I certainly don't plan to use anythin
Slow to catch... (Score:2, Funny)
Or is this a dupe from yesterday?
Success of PHP easy to understand (Score:5, Insightful)
1. It is very easy to learn
2. It is easy to use (unlike ASP.NET) and relatively simple
3. The syntax is derived from C and perl
4. It is free
Re:Success of PHP easy to understand (Score:2)
$test = null;
if ($test==null) {
echo "test is null";
}
$test = array("1","2");
if ($test==null) {
echo "test is null";
}
$test = array();
if ($test==null) {
echo "test is null";
}
reply with your suggested result
Re:Success of PHP easy to understand (Score:2)
Personally I like Python or Ruby way better. Variant types are just not acceptable.
Re:Success of PHP easy to understand (Score:3, Insightful)
If you use either if (is_null($test)) or if ($test === null) instead of if ($test == null) you get the expected results.
JP
Re:Success of PHP easy to understand (Score:3, Insightful)
5. It's fast.
6. It is easy for hosting providers to deploy. There are tons of hosting companies out there give customers PHP support because it is easier to support on a box running a bunch of vhosts. Other web scripting environmants either have security issues (mod_perl is really scary if you don't trust other people running on the same host), have limitations for what directories scripts are run from, or are just a PITA to deploy in a simple yet relatively secure way. (That's n
Looking forward (Score:4, Insightful)
One of the huge problems with PHP is the massive number of XSS and SQL injection vulns present in code. Partially because PHP is used by beginners, but mainly because PHP does not help the developer write secure code. It's fast and easy to write, but allows you to shoot yourself in the foot. Just like C. See this paper on precise tainting [virginia.edu] for an example solution to the problems. It would break compatibility with most software written in PHP, but that's not neccessarily a bad thing when most of it is insecure trash.
Re:Looking forward (Score:2)
Re:mysql_escape_string (Score:5, Interesting)
Your "not that hard" comment is rather amusing with this in mind.
Re:Looking forward (Score:3, Informative)
PHP: Hypertext Preprocessor (Score:2, Funny)
Sometimes One Feature is all it takes (Score:2)
But most PHP applications I've developed usually start simple but grow into a tangled mess of code. I've tried to seperate my programming logic using templating systems, but it's just so much e
All hail "worse is better" (Score:2)
I get it, but I don't want it (Score:3, Insightful)
It was very clever and very handy when it was first developed, but there are many much better systems for building web pages available today.
Its object-oriented features are kludgy, its syntax is a throwback to C, and it in a realm where string handling is ubiquitous, it provides you with such great functions as strtok() and strncmp(). I mean come on, haven't we evolved just a bit past using the C standard library for string handling in our freaking web applications?
Personal Home Pages is fine for whipping up a quick data-driven website, but if you want to build a large application it's crap.
So what... (Score:2, Funny)
Why I Like PHP (Score:3, Informative)
I like Perl because it uses different operators for string concatenation and addition. That doesn't sound like much of a reason, but a lot of the programming I'm doing seems to call for either adding numbers or concatenating strings.
Now, in some languages, strings and numbers are completely different types. Then it's sort-of OK to recycle an operator to mean something completely different, because the computer knows what you mean. But there are several dynamically-typed languages which use + to concatenate strings. Then the magic guesser gets its knickers in a twist with not being able to work out whether something is really a number or just a string that looks like a number. This causes problems when you try to add numbers and find yourself concatenating strings. I wasted the best part of a day on a stupid bit of JavaScript for a DHTML application with increment/decrement buttons.
In Perl {and in PHP}, 3 + 4 gives 7. "3" + 4 gives 7. 3 + "4" gives 7. And "3" + "4" gives 7. If you actually want to concatenate the 4 onto the end of the 3, you have to use the concatenation operator . instead of the addition operator +. 3 . 4 gives "34". "3" . 4 gives "34". 3 . "4" gives 34. And "3" . "4" gives "34". That is simple.
Perl is a bit of a 'mare for n00bs because everything is a shorthand representation. There is the wonderful $_ which avoids cluttering up your script with temporary variables. You don't need brackets round function arguments {like the British BASIC dialects of the '80s}. Everything is optimised for the hardcore hacker, not the beginner. It only looks pretty when you realise that simplicity is beauty.
PHP has a more consistent interface than Perl. So you can't just drop in a regular expression, you have to call a function with the regular expression inside a string. It also does more stuff automagically for you, like keeping hashes ordered {Perl doesn't bother, expecting you to keep a separate array if you really care} and dereferencing everything {Perl expects you to manually create and dereference references when you make multidimensional arrays}. So it's probably a bit slower running, but it's quicker to get an app up and running.
It's how you use it... (Score:5, Insightful)
It's all in how you use it. Do you hack together a bunch of pages with isolated scripts talking to html forms and databases in an ad-hoc manner? Or did you start with a solid application design model from the start and follow through with time-tested methodologies?
PHP gets a bad rep because of the large number of inexperienced developers using it with poor results. I've developed full CRM and ERP apps with it including invoicing and ticketing systems that scale beautifully and are a dream to maintain. PHP is fast, free, and easy to use.
It's the responsibility of the developers to use more mature practices when developing large apps- and to recognize the fact that small site admin areas often evolve into larger apps. Plan and design!
We brought the cake (Score:4, Funny)
Yeah, we're a bit over the top for PHP. The whole company had cake and ice cream to celebrate.
Easy php installation (Score:3, Informative)
Personally, I've set up a lot of moodle sites (www.moodle.org) which is the best free LMS I've found.
Check it out if anyone is into e-learning or web based training.
(Make sure you have a fast server if you want to put a lot of students on it. The quiz modules are very useful, but they use an ungodly amout of resources if you're teaching a class of +30 students.)
Still broken. (Score:3, Interesting)
Ten years and the == operator is still completely broken. Any hope of fixing it in the next ten?
Suppose A equals B, and also B equals C. Any reasonable person would expect that A equals C, right? Oh yeah?
Try explaining that to a first-time programmer.Re:First AC (Score:4, Informative)
Probably a troll, but just in case anyone else doesn't know: PHP is a scripting language designed for generating dynamically created web pages. It functions by mixing its scripting in with the HTML, thus allowing programmers to reuse existing page designs. The scripting APIs are centered around those commonly used on Unix systems. PHP is usually bundled with Apache, so no installation tends to be required.
PHP Homepage [php.net]
Standard practice! (Score:2)
--grendel drago
Re:Standard practice! (Score:2)
Re:Completely necessary (Score:2)
Try using < and > =)