Slashdot Mirror


Recommended Reading List for PHP

Steve writes "IBM developerWorks has put together a PHP recommended reading list. It provides resources for developers and admins adopting PHP and tackling advanced topics such as building extensions and writing secure code. There's also a list of books and blogs for keeping up with changes to the language itself."

128 comments

  1. Forgot one by Anonymous Coward · · Score: 5, Funny

    They forgot the most important article on PHP! What it is:

    http://uncyclopedia.org/wiki/PHP

    1. Re:Forgot one by babbling · · Score: 1

      Uncyclopedia is so inaccurate!

      Try the Wikipedia article instead.

    2. Re:Forgot one by Anonymous Coward · · Score: 0

      Are you kidding? Wikipedia is full of all kinds of misinformation! Haven't you read the Uncyclopedia warning about them? It's their mission to deceive you with information made up by fanbois!

    3. Re:Forgot one by Overly+Critical+Guy · · Score: 2, Funny

      Wow! Thanks for the heads-up!

      --
      "Sufferin' succotash."
    4. Re:Forgot one by HaDAk · · Score: 1

      omg. uncyclopedia is my new god!

    5. Re:Forgot one by heinousjay · · Score: 1

      Wow, whoever wrote that article doesn't really understand what makes a joke funny at all. Every line is essentially the same thing: start with a tangentially related, but untrue, factish statement about PHP, then wildly shift gears in a contradictory clause in non-sensical fashion. How wacky!

      It makes me long to watch Son of the Mask again. I won't laugh at that either, but I won't expect to, so it won't be nearly as disappointing.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    6. Re:Forgot one by Grant29 · · Score: 1

      The more important PHP site to me is php.net. I type http://php.net/function_name into my browser all the time. Even if I owned a reference book, this method is still faster. I'm already at the PC anyway.
      --
      Find the lowest price at PriceAge. Comparison Shopping with online coupons.

  2. Queue anti-PHP jokes... by Saeed+al-Sahaf · · Score: 1, Funny

    Queue anti-PHP jokes...

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    1. Re:Queue anti-PHP jokes... by Jason+Earl · · Score: 4, Funny

      If PHP developers could read they would be using Python...

      Thanks, I will be here all week...

    2. Re:Queue anti-PHP jokes... by homebrewmike · · Score: 3, Funny

      And if Python developers could code, they would be using Java.

      Troll status, here I come!

    3. Re:Queue anti-PHP jokes... by Senzei · · Score: 2
      And if Python developers wanted to drown in xml, they would be using Java.

      There, fixed that type for you.

      --
      Slashdot: Where anecdotes and generalizations can be freely substituted for facts, logic, or intelligence
    4. Re:Queue anti-PHP jokes... by jtorkbob · · Score: 1

      You missed one:

      http://www.perl.org/

      --
      AC: Only on slashdot... could the sentence "My hovercraft is full of eels." be moderated "+4, Insightful
    5. Re:Queue anti-PHP jokes... by caffeination · · Score: 4, Funny
      There, fixed that typo for you.

      There, fixed that typo for you.

    6. Re:Queue anti-PHP jokes... by Pneuma+ROCKS · · Score: 1
      There, fixed that typo for you.
      There, fixed that typo for you.
      There.
      --
      Favorite quote: "
    7. Re:Queue anti-PHP jokes... by Anonymous Coward · · Score: 0

      @PHP_Recommended_Reading = ("Learning Perl", "Programming Perl", "Mastering Regular Expressions", "Programming the Perl DBI", "Advanced Perl Programming");

    8. Re:Queue anti-PHP jokes... by killjoe · · Score: 1

      If people knew lisp there would be no need for XML.

      --
      evil is as evil does
    9. Re:Queue anti-PHP jokes... by miyako · · Score: 1

      And if Java programmers understood Pointers they would be using C++

      --
      Famous Last Words: "hmm...wikipedia says it's edible"
    10. Re:Queue anti-PHP jokes... by Bogtha · · Score: 1
      --
      Bogtha Bogtha Bogtha
    11. Re:Queue anti-PHP jokes... by forkazoo · · Score: 4, Insightful

      I tried to add my joke to the queue, but do to a weak implimentation of object orientation and inconsistency, I was just left befuddled as to whether I needed to AddJokeToQueue, joke2queue, add_joke, etc. So, I gave up and just put my joke on rails... /me ducks...

      Seriously, I love PHP, but I think that it is designed to require having the docs handy... :)

    12. Re:Queue anti-PHP jokes... by Anonymous Coward · · Score: 0

      And if C++ programmers understood why pointer arithmetic is bad, they wouldn't be so stupid.

    13. Re:Queue anti-PHP jokes... by homebrewmike · · Score: 1

      What's your point? er.

    14. Re:Queue anti-PHP jokes... by jo42 · · Score: 1

      POOP - PHP Object Oriented Programming.

  3. PHP 5 Power Programming (Gutmans) by pestilence669 · · Score: 5, Interesting

    This book was Slashdotted a few months ago. It's written and endorsed by members of the core PHP team. It's the most accurate language resource I've come across. It covers the PHP language, while I've found that other books tend to offer cookie-cutter "recipes" for common scenarios (code snippets). Sadly, its mention of interfaces is a bit sparse and it pre-dates PHP 5.1's PDO. Nevertheless, I still find it very relevant for anyone doing OOP with PHP. There are one or two gems not found in the online documentation.

    NOTE: It's better to have some PHP programming experience before reading.

    ISBN: 0-13-147149-X

  4. How about this by Anonymous Coward · · Score: 0

    People criticize PHP because code written in it is messy and stuff. I think it is mostly because writing PHP code is so easy that most of the web designers and hobbyists write it.

    How about compulsory reading of a C++ or Java OO book, even before you know what "var $myVar" is.

    1. Re:How about this by temojen · · Score: 2, Insightful
      How about compulsory reading of a C++ or Java OO book, even before you know what "var $myVar" is.
      I've used C, C++, Java, JavaScript, PHP, Perl, Scheme, Prolog, Cobol, plPGSQL, x86 Assembler, VAX Assembler, 68hc11 Assembler, and TCL, and I don't know what language you'd use the statement "var $myVar" in.
    2. Re:How about this by caffeination · · Score: 1

      I've just tested it on my local copy of my site, in php, and it seems to work similarly to 'exit'.

    3. Re:How about this by Anonymous Coward · · Score: 0

      "I've used C, C++, Java, JavaScript, PHP, Perl, Scheme, Prolog, Cobol, plPGSQL, x86 Assembler, VAX Assembler, 68hc11 Assembler, and TCL, and I don't know what language you'd use the statement "var $myVar""

      I am the op, and you prove my point precisely. You said you have developed using PHP, and you don't know what var $myVar is? That is because you do not know OO PHP and people like you should read the effing OO programming and follow that in PHP so that your messay habits do not end up being blamed on the language.

      Does this makes any sense to you

      Class MyClass extends SuperClass
      {
            var $id;
            var $anotherId;

            function MyClass()
            {
                  # a constructor

            }
      }

      This is called a class definition. and var $myVar is a veriable of that class.

    4. Re:How about this by Anonymous Coward · · Score: 0

      PHP 4.x uses it for class variables.

    5. Re:How about this by temojen · · Score: 1

      Oh yeah, I've been editing other people's non-OO PHP for a few months. It's been a while since I made classes. The code I've been editing has business logic and presentation badly mixed, and editing it involved wadeing through reams of nested tables.

    6. Re:How about this by Anonymous Coward · · Score: 0

      I've used C, C++, Java, JavaScript, PHP, Perl, Scheme, Prolog, Cobol, plPGSQL, x86 Assembler, VAX Assembler, 68hc11 Assembler, and TCL...

      Wow dude you are so cool. You must get all the ladies.....

    7. Re:How about this by Hosiah · · Score: 1
      Wow dude you are so cool. You must get all the ladies.....

      Sweetheart, 20 years ago he would have been bragging. *Now* he's just trying to KEEP UP. (Notes lack of Python or Ruby) and he's losing!

    8. Re:How about this by Anonymous Coward · · Score: 0
      Note: The PHP 4 method of declaring a variable with the var keyword is no longer valid for PHP 5 objects. For compatibility a variable declared in php will be assumed with public visibility, and a E_STRICT warning will be issued.

      source: php manual

      so on the one hand, for php4 oop it's needed to know what var does, but it's not as important as knowing reference handling (because of autocloning). but on the other, it's more important to write php5 scripts using E_STRICT (to get warnings when using undefined member variables or legacy features) and not to bother about attic statements such as var.

      until php5, people complained about crappy php oop features and now, you get angry because someone does not know the hardly usable and therefore obsoleted way? tztz
    9. Re:How about this by Anonymous Coward · · Score: 0

      #!/usr/bin/perl

      sub var { print @_, "\n" }

      $myVar = 'hello, world';

      var $myVar

  5. Re:Ah, yes by lymond01 · · Score: 4, Insightful

    Meh. For web-based applications on a small to medium level, PHP is the way to go. You can say it's just a scripting language and therefore not a "real" programming language if your definition of "real" does not include a language with defined syntax, for loops, variables, arrays, system calls, objects, classes, etc.

    But then what would you call it? An egg? No...that's taken by those round things chickens lay. I've no idea really. I'll just go with programming language and leave the modifiers out.

  6. ISBN-13 is upon us! by XanC · · Score: 2, Informative

    978-0-13-147149-8

    1. Re:ISBN-13 is upon us! by pestilence669 · · Score: 1

      my bad

  7. Useful article++... Am I lost? by Duncan3 · · Score: 3, Funny

    Not a dupe...
    Actually useful...
    First post wasn't about a Beowulf cluster or Soviet Russia...

    What happened to Slashdot???

    My faith will be restored if this article is duped within 24 hours.

    --
    - Adam L. Beberg - The Cosm Project - http://www.mithral.com/
    1. Re:Useful article++... Am I lost? by caffeination · · Score: 1

      Iam Slasdot edditer Rob Malda, and this is the longast day of my life! BEEP BEEP BEEP VEEEP.

    2. Re:Useful article++... Am I lost? by kehren77 · · Score: 1

      just for you......

      In Soviet Russia, PHP codes you.

      and as a special bonus......

      I for one welcome our new PHP overlords.

  8. PHP, the web standard by RLiegh · · Score: 1

    I'll have to check out those books. I'm ashamed to say that I don't know as much about PHP as I should. While I was busy trying to decipher Open Source Perl code (to learn from) the web standardised on PHP, and I know next to nothing about it!
    I just hope there's an emacs mode for PHP, I'd hate to have to go back to using VIM to code.

    1. Re:PHP, the web standard by Senzei · · Score: 4, Insightful
      The web hasn't standardised on PHP, there is an emacs mode for it, and you will probably come to hate it.

      It has always seemed like the bash of web programming, except uglier and slightly more difficult to use. It works, but if you push it too hard or the wrong way it feels like you are trying to make a mud sculpture.

      --
      Slashdot: Where anecdotes and generalizations can be freely substituted for facts, logic, or intelligence
    2. Re:PHP, the web standard by Hosiah · · Score: 1
      I'm ashamed to say that I don't know as much about PHP as I should.

      I have learned just last week that the best way to learn PHP is to suddenly become a webmaster hosted on a Linux server using various installed content-management tools like b2evolution or WordPress for blogging and Coppermine for image gallery. You will simply be *thrust* into PHP with no second option. In fact, my host has something like 50 tools available to use and I think only 3 of them aren't PHP.

      Call it geek-fatigue, but the thing that's starting to bug me is that no matter how many languages you learn, IT'S NEVER ENOUGH. I know/have worked in something like 20 languages in my lifetime, and still, every time I try to tackle some new task, all I knew before is comepletely useless. No, I have to learn a special language just for *that* job. And I suppose by the end of this year, styles will change and they'll decend a new language from AJAX or somedamnthing and I'll *never* have a use for PHP again! When did "programming language" come to == "Kleenex"?

    3. Re:PHP, the web standard by Anonymous Coward · · Score: 1, Funny

      Mud sculpture is close, but I think another brown substance might be more accurate.

    4. Re:PHP, the web standard by edwdig · · Score: 3, Interesting

      If you think PHP is ugly, try looking at ColdFusion. Same basic idea as PHP, but you get to write you code in HTML style syntax. You also get Fortran style operators (gte instead of >=, lt instead of <, etc) Damn near impossible to quickly glance at large block of code and figure out what's going on. The code doesn't stand out from the HTML, and you've got a ton of keywords due to all the information being passed HTML attribute style.

      Fun stuff like this...

      <cfloop index="i" from="0" to="10" step="1">
          <cfif i mod 2 is 1>
              <cfoutput>#i# is odd</cfoutput>
          <cfelse>
              <cfoutput>#i# is even</cfoutput>
          </cfif>
      </cfloop>

      You also get some really odd language decisions. For example, when they first added support for functions there were no return values. To work around this, you had a special local variable called "caller" which was a structure containing the local variables of the previous scope. They eventually fixed this, but PHP's language problems don't look so bad compared to that.

    5. Re:PHP, the web standard by ceejayoz · · Score: 1

      The code doesn't stand out from the HTML

      Isn't that why God invented syntax colouring?

    6. Re:PHP, the web standard by Senzei · · Score: 1

      Yeah, I have seen coldfusion, it is that hideous. But hey, you can write all your code as valid xml... so it can be parsed or something. With namespace definitions it could be valid xhtml, if you wanted that for some reason. I, however, would use it for its true intended purpose: to torture junior programmers by forcing them to work with the page designers in their language.

      --
      Slashdot: Where anecdotes and generalizations can be freely substituted for facts, logic, or intelligence
  9. Re:Jobs section in the newspaper by Anonymous Coward · · Score: 0
    open source = homelessness

    No, no... You mean "Open Sores."

  10. software engineering for internet applications by tjr · · Score: 1
  11. Security is *advanced*!? by porneL · · Score: 1, Insightful

    If security is threated as advanced topic in PHP, no wonder this language has such lousy reputation.

    1. Re:Security is *advanced*!? by almostobsolete · · Score: 1

      I noticed that as well, pretty much sums up the general PHP attitude to secuirty...

    2. Re:Security is *advanced*!? by GigsVT · · Score: 1

      If you consider security in a server-side application something even a beginner can handle, then I question the security of your code.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    3. Re:Security is *advanced*!? by bturnip · · Score: 1

      What intro to (insert my-favorite-super-leet-flavor-here) language talks about security first? Really, that is great that security is old hat to all the seasoned pros and was obviously the first thing they must have covered right after "Hello, world!". In TFA, on the first page at the very top:
      Recommended PHP reading list
      Level: Introductory
      So, c'mon, lighten up, you know? PHP is such an easy target. Go bash the Perl or Python geeks. What about Ada? Not enough folks bashing Ada...
      ps- not a spelling snob, but I couldn't quite tell if that was supposed to be "If security is treated as [an] advanced topic..." or "If security is threatened as [an] advanced topic..."

    4. Re:Security is *advanced*!? by Anonymous Coward · · Score: 0

      If you can't handle security, you aren't even a beginner, you're simply unqualified to do the work (without someone looking over your shoulder).

  12. Re:Why all of the PHP postings? by Anonymous Coward · · Score: 0

    Ah yes, But seriously, How often is there any articles worth submitting to slashdot on other languages?

  13. Re:Why all of the PHP postings? by Tim+Browse · · Score: 2, Funny
    PHP is a pretty niche language with little theoretical power.

    Thanks - I've only just stopped laughing.

    Are you here all week?

  14. Nooo!!!! by drew · · Score: 4, Insightful

    And this is why I hate web programming and web programming languages:

    It provides resources for developers and admins adopting PHP and tackling advanced topics such as building extensions and writing secure code.

    Why is this considered an advanced topic? Security should be the first thing anyone writing software for the web learns. And web programing languages need to make it easy to write secure code by default. *Sigh*

    --
    If I don't put anything here, will anyone recognize me anymore?
    1. Re:Nooo!!!! by caffeination · · Score: 2, Interesting
      Out of honest curiosity, is that how perl is? I'm a fledgling programmer myself, using PHP. There's a lot of talk about it being insecure, and not being a True Programming Nerd, I have no real idea why.

      This itself raises the issue that if a language is too easy to write securely by default, people starting out in it won't learn to think about security when they code, which is a short term vs long term thing. The phrase "too secure" does sound a little moronic though...

      For the record, my code is incredibly paranoid. I'm probably not very representative though, being a much-less-new security conscious Linux user.

    2. Re:Nooo!!!! by Hosiah · · Score: 4, Funny
      is that how perl is

      Perl: Take every programming language you know now. Mix them all together. That's Perl. No, not the functionality, just the syntax.

    3. Re:Nooo!!!! by Craig+Maloney · · Score: 3, Informative

      The reason people find PHP so insecure is because you can plop a script practically anywhere on the server, and have it run. So, if one of the scripts allows someone to upload somewhere where they shouldn't, BAM, you're compromised.

      I've found this out first-hand with a few PHP scripts I've run. It's amazingly easy to set up, but it's also a discipline in itself to ensure it keeps crackers out.

    4. Re:Nooo!!!! by Bogtha · · Score: 1

      Why is this considered an advanced topic?

      Indeed. The one thing that makes the absurdity of this point of view apparent is when you point out that "secure code" is a synonym for "correct code". If you write bug-free code, then you've basically eliminated security holes. That reduces "security is an advanced topic" to "writing code that isn't full of bugs is an advanced topic", which isn't exactly defensible.

      --
      Bogtha Bogtha Bogtha
    5. Re:Nooo!!!! by dodobh · · Score: 1

      PHP used to have horrible defaults. This has improved, but a lot of application programmers still require old style settings.

      The core language is huge. PHP lacks namespaces, making all variables global.

      PHP is _extremely_ easy for newbie programmers to mess with. This has practically made it the visual basic of the Linux/Unix world.

      On the other hand, Perl went through this evolution a few years ago. (The lack of use strict and use warnings by default is _still_ a known bug). Perl has a taint mode, where the programmer is required to validate all input to the program. Perl supports namespaces. The use strict and use warnings pramgas help in avoiding silly mistakes, like typos.

      Perl doesn't make it hard to write insecure code. But writing secure code is a lot easier in Perl than in PHP, because the language supports those features.

      (You could say similar things about Ruby, or Python, or Java).

      --
      I can throw myself at the ground, and miss.
    6. Re:Nooo!!!! by elp · · Score: 1

      PHP catches a lot of flack because it is by far the most popular language out there for building websites which offends the crowd who want work with a language only the ubergeeks can use.

      The thing is that a clueless newbie can be productive in less than 2 weeks with PHP (even though looking at his code will make your eyes bleed). While for more experienced programmers its very easy to use things like the object features in PHP5 combined with template tools like smarty and db libraries like ADODB to create stable, maintainable and fast sites. For most small to medium business owners it's a really good choice because the openness helps keep down development costs and if one developer doesn't deliver its easy to find another who can.

      When it comes to security the real truth is that it doesn't matter what language you use, if you don't check the user input, you WILL be sorry. Every 3 months or so I'll have a customer upload a formail.pl script from the 1990s and I'll end up having to clean up the mess once the spammers start exploiting it. Most of the security problems with PHP tend to always occur with the same small group of popular packages (phpbb, postnuke, etc.) written by people only worried about the functionality not about the security)

    7. Re:Nooo!!!! by skillet-thief · · Score: 1

      I am more or less an intermediate PHP hacker. Most of my experience is in Perl and mod_perl.

      Right now, what I find the most frustrating about PHP is the embedded model. It seems that you have to jump through a lot of hoops to work around that. Maybe once you get used to jumping through those hoops it is okay, but (for me anyway) it seems like I am working against the language when I want to abstract webpages away from their files, for example.

      It seems to me that this is one of those areas where the easy-access part (templating built right into the way you code) starts making it harder to do more complicated things.

      --

      Congratulations! Now we are the Evil Empire

    8. Re:Nooo!!!! by Hynee · · Score: 1

      Sorry, but if you put a powerful and insecure script in any language on a server then you've got the same problem.

      --
      Damn, I already moderated this topic. Now I'll have to log in with my sock puppet to comment.
    9. Re:Nooo!!!! by Craig+Maloney · · Score: 1

      True, but PHP turns writable directories that should not have executables (images, uploads, etc) into fertile territory for attackers. I can secure cgi-bin in Perl and be reasonably comfortable (with the right Apache configuration) that a rogue script in a writable directory without execute permissions won't be able to be run. I cannot say the same for PHP, which makes every writable directory on the web server a target for attacks.

      Please correct me if I'm wrong. Part of the reason I'm not much of a fan of PHP is because this capability has burned one of my sites. If there is a way to keep an image / upload directory from running PHP scripts, I'm all ears.

    10. Re:Nooo!!!! by Hynee · · Score: 1
      I see what you're saying. You can turn off PHP execution with .htaccess (either a PHP directive or ), and I think it works with all versions of PHP, Apache only though. The other thing to do (and the normal thing) is to scan extentensions of incoming files, and have a black list (PHP should be at the top of this list), or a white list if you only want a certain type of file (like images) in there. A third way is to store the uploaded files in a place inaccessible by the web.

      I doubt Perl scripts would store their uploads in the cgi dir anyway, so my first point still holds.

      --
      Damn, I already moderated this topic. Now I'll have to log in with my sock puppet to comment.
    11. Re:Nooo!!!! by Craig+Maloney · · Score: 1

      The first way (.htaccess) may work. The second way unfortunately doesn't work, as you can upload a PHP file as a .gif file and the server will execute it just fine. The third way is also a bit tricky as the server software will have to put the files somewhere when the upload is approved, requiring a writable directory eventually. I've adopted a manual process for handling these, but quite frankly it makes the whole push for PHP a bit distateful to me.

    12. Re:Nooo!!!! by drew · · Score: 1

      The second way unfortunately doesn't work, as you can upload a PHP file as a .gif file and the server will execute it just fine.

      Not true, at least with Apache- I just tested it. Perhaps for other servers... Unless you havemod_mime_magic enabled apache determines file type by extension, so unless for some bizarre reason you have configured Apache to parse *.gif as a PHP file, this is not an issue.

      At any rate, any time you allow anonymous users to upload arbitrary files to a webserver, you have to be careful. And if you are allowing them to upload to a directory in the web root, you need to be doubly careful.

      --
      If I don't put anything here, will anyone recognize me anymore?
  15. Re:Why all of the PHP postings? by caffeination · · Score: 1

    Not once the moderators are finished with him.

  16. Just learn from the examples. by caluml · · Score: 2, Insightful

    Only thing I've ever needed to read to learn PHP is fr.php.net. (Because the UK mirror is slower.)

  17. FOREIGNER by caffeination · · Score: 1

    If Python developers had { and } keys they'd be using PHP!

  18. Templating systems by Spy+der+Mann · · Score: 2, Informative

    This one's an ABSOLUTELY MUST-READ for those who don't know what template engines are:

    http://www.sitepoint.com/article/beyond-template-e ngine

    1. Re:Templating systems by Cl1mh4224rd · · Score: 1

      Bleh. What's wrong with XML and XSL? Seriously... The developer generates the XML document structure, then passes it through the XSLT processor, applying an XSL stylesheet created by the web designer. Standards all the way...

      --
      People will pass up steak once a week, for crap every day.
    2. Re:Templating systems by Spy+der+Mann · · Score: 1

      Bleh. What's wrong with XML and XSL?

      It's not supported in PHP4. Sure, there are the extensions, but they're NOT installed by default in common server configs, so you'd have to do it by hand, and that's SLOOOOOOWWW.

    3. Re:Templating systems by Cl1mh4224rd · · Score: 1
      It's not supported in PHP4. Sure, there are the extensions, but they're NOT installed by default in common server configs, so you'd have to do it by hand, and that's SLOOOOOOWWW.
      Oh, yeah... Good point. I've been using PHP5 long enough to have driven that from my mind.
      --
      People will pass up steak once a week, for crap every day.
  19. 5 good PHP sites by Anthony+Boyd · · Score: 5, Informative

    Their list is great -- I'll be reading some of those articles for weeks before I get through them all. I'm especially interested in the 7 security blunders article. Nice!

    But they did leave off a lot of sites that are useful. Here are a few:

    • PHP Resource Index - a few thousand scripts for downloading, most free, all PHP.
    • PHP Builder Forums -- the PHP Builder site is pretty useful all by itself, but in the forums there are thousands of people willing to answer your PHP questions.
    • PHP Freaks -- one of the guys behind this site wrote a great PHP book. The site is excellent.
    • ADOdb Database Abstraction Layer -- okay, okay, this isn't really a site, so much as a product. But still, it's a very efficient DBAL, and it should be used for every database query.

    Anyone want to pitch in with some more? I'm sure there are some very useful sites that I've completely missed (and which the IBM site missed, too).

    1. Re:5 good PHP sites by Kawsper · · Score: 1

      I also enjoys this site when i am making my homepages, its a good resource for those who are into PHP and OOP and want to speed the process up a bit.

  20. Re:Why all of the PHP postings? by messju · · Score: 1

    Hmm, why is this a laugh?
    The theoretical power of php is really low. It's more its practical power that made it popular.
    And although it is a pretty huge niche where php fits it stays a niche by definition.
    (Don't get me wrong, I do professional php from time to time).

  21. PHP Rocks in time spent! by Anonymous Coward · · Score: 3, Interesting

    PHP is a powerfull language not only for the web, but for general purpose programming. Please, experienced C and C++ programmers do a favor to yourselfs and give it a try, testing algorithms can be done in a very short little time, in contrast to other languages.
    It's a breeze in the ocean!

    http://www.codingheaven.net/ http://www.codingheaven.net/

    1. Re:PHP Rocks in time spent! by A+beautiful+mind · · Score: 1

      Hehehehe. Oh my.

      Some mods failed to catch the subtle sarcasm of the parent post, eh? :)

      --
      It takes a man to suffer ignorance and smile
      Be yourself no matter what they say
    2. Re:PHP Rocks in time spent! by Jesus_666 · · Score: 3, Insightful

      Well, PHP is useful for general purpose scripting. I went from web scripting to shell scripting and I'm much more proficient at PHP than I am at Python or sh, so when I have to write shell scripts I usually go with PHP. Yes, I know that sh is faster. Yes, I know that Perl has better PR. But I can just crank out a PHP script in half the time it takes me to read awk's manpage or whatever I need to get that sh script going.

      It might not be the cleanest language around, but it allows for fairly rapid script development when you're familiar with it. Also, it has the most useful documentation of any scripting language I have ever seen, even more useful than Java's API documentation.

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
    3. Re:PHP Rocks in time spent! by A+beautiful+mind · · Score: 1

      "Also, it has the most useful documentation of any scripting language I have ever seen, even more useful than Java's API documentation."

      That's just not true. Perl has better - perldoc is a programmer's wet dream.

      --
      It takes a man to suffer ignorance and smile
      Be yourself no matter what they say
    4. Re:PHP Rocks in time spent! by Jesus_666 · · Score: 1

      It is true. I haven't seen perldoc yet.

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
  22. Re:Agile Web Development by Anonymous Coward · · Score: 0

    It's too bad you're such a Jack Ass.

  23. Schlossnagle's "Advanced PHP Programming" by MattW · · Score: 3, Interesting

    I'm glad to see that at the top of the list. I haven't read all those php books, but I am a very experienced developer in the language, and that book is fabulous. It manages to cover many topics, and with astounding clarity and insight. Definitely a master work on the topic.

  24. never code while angry by caffeination · · Score: 1

    Now you see how stupid you are for coding while angry? You forgot to put anything in your function! That's what I call a messy habit!

  25. I'd suggest these: by Anonymous Coward · · Score: 0, Troll
    1. Re:I'd suggest these: by Anonymous Coward · · Score: 0

      get rid of Celko's book and replace with:

      Database in Depth, by C. J. Date

      which in roughly 200 pages explains the relational model, the underlying model of all data management (yes, including objects and XML), rather than any product (such as an SQL DBMS).

  26. Re:Ah, yes by Anonymous Coward · · Score: 0

    Nah, if there's any kind of business logic going on RoR is the way to go.

    PHP is a decent templating language for mostly static pages, tho.

  27. Re:Agile Web Development by Anonymous Coward · · Score: 0

    +1, insightful

  28. The first book a PHP programmer should get is... by 5n3ak3rp1mp · · Score: 0, Offtopic

    this one, and then this one. ;)

    /flame-off

    //kept pushing my host to install PHP5 for months, before I got on the train

  29. mmm... theoretical power by Mateo_LeFou · · Score: 1

    we only use 10% of the theoretical power in any programming language.

    PHP might be the gedit of programming languages. No, gedit can't do everything emacs does, but it's always there when you need it and damned if it can't show you a bunch of text and let you edit. You can even search/replace

    --
    My turnips listen for the soft cry of your love
  30. One useful article by pnot · · Score: 1

    ... on when and when not to use PHP: Experiences of Using PHP in Large Websites (Aaron Crane, UKUUG Linux Conference 2002).

    1. Re:One useful article by lbft · · Score: 1

      Anyone who's used PHP recently will recognise many inaccuracies and weak points made within that article - from the superglobals, to the Apache php_flag/php_value directives, to the fact that most of the "problems" mentioned are rarely used, fixable by using the recommended php.ini configuration, or by actually showing some self-discipline and not using bad practices (I mean, hey, people wouldn't blame C for someone #define-ing themself into oblivion, would they? No, they'd blame the programmer.)

      I'm not saying that PHP is the best solution for every situation, but rather that most of the common criticisms of it are based on false assumptions, shallow understanding of the language and outdated knowledge (the article the parent links to quotes the PHP 2 manual, for goodness' sake! PHP 5 left beta in July 2004!)

  31. You forgot one by onlyjoking · · Score: 1

    'Programming Perl' by Larry Wall

  32. Re:Sooo hate to say it.... by Hosiah · · Score: 1

    but did everybody on Digg think PHP is a new hip-hop group?

  33. Re:Sooo hate to say it.... by Anonymous Coward · · Score: 0

    if you're reading both digg and slashdot, and often enough to know how long the lag is, then you really have too much time on your hands.

    Go do something useful...
    ...or anything at all!

  34. Addition to Recommended Reading List for PHP by Anonymous Coward · · Score: 0
    A Confederacy of Dunces?

    Sorry, it was just too easy...

  35. Most important link about PHP by A+beautiful+mind · · Score: 0, Offtopic

    is this one.

    I'm not trying to troll, but if you do need a scripting language for more than a "Personal Home Page" then you're essentially better off using Perl, Python or Ruby.

    (Just for the record, I'm telling this while having advanced knowledge in PHP, Perl and Python and intermediate in Ruby)

    --
    It takes a man to suffer ignorance and smile
    Be yourself no matter what they say
  36. Re:Sooo hate to say it.... by ericdfields · · Score: 1

    no... but they do consider the possibilities that new technologies -- 'innovations' some may say -- pose a challenge to the status quo, no matter how geeky that quo may be.

    sorry to be off-topic but i think this a matter that we dear /.ers need to consider...

  37. My recommendations for a PHP reading list by Crazen · · Score: 0, Flamebait

    If you're building a personal home page, then look at the other posts for recommendations. If you're building something that other people will have to maintain, and is supposed to generate a significiant amount of income, or is dependent on it, read anything by Scott Meyers And then: Head First Java, 2nd Ed. C++ How to Program (4th Edition)

    1. Re:My recommendations for a PHP reading list by Crazen · · Score: 1

      Objections to Ruby, Perl, insert scripting language here: weak typing and no compile step

    2. Re:My recommendations for a PHP reading list by CableModemSniper · · Score: 1

      Ruby and Python are both strongly typed. As for there being no compile step, that can be a blessing as well as a curse. (Technically, there is a compile step, the results just aren't saved to disk. Well, python does, some what.)

      --
      Why not fork?
  38. What to read about PHP? Easy... by Anonymous Coward · · Score: 0

    Nothing. Just avoid it like the plague!

  39. Re:Sooo hate to say it.... by Hosiah · · Score: 1

    Oh, all right, sounds like you're getting all serious on me. What pray tell, need we consider that causes such grave tones? *Waving firmly goodbye to the topic for another post*

  40. Hey, nobody mentioned symfony so far! by cprior · · Score: 1

    http://www.symfony-project.com/ "symfony is an open-source PHP5 web framework "professional web tools for lazy folks *

    /me is a bit too tired to write something witty about it here, you might want to judge a quote from the dev yourself:

    fabpot: "I'm not very strict with design patterns... I try to be pragmatic and to get things done quickly. That said, I know there is a lot of problems with this way of doing things and I try to correct them with new releases. symfony is a moving target..." (01/30/2006 08:28 in #symfony)

    I like it for a pragmatic, down-to-earth approach:
    Lotsa form_tag opening helper functions, but you close with

    And if you ever thought open-source was not well documented, you are in for a surprise!

    *) under discussion

  41. PHP - Because everyone else is doing it. by Anonymous Coward · · Score: 1, Insightful

    I have actual products and such written in PHP that I sell. I would consider myself "advanced" in php programming. (I've been at it a number of years)

    PHP is very easy, but compared to perl (or even JSP..) it is terrible. The only reason to learn it is if you are planning on reselling scripts or working (as in paid..) for others. Working with it is a pain. It's horrible when it comes time to move from host to host because it has "settings" (a language with an .ini file is NOT a language)

    PHP5 is a step in the right direction, however, it's been a couple YEARS now and most ISP's still don't support it (or if they do, it's via a CGI mode which is slow and buggy)

    Unfortunately, people searching for web applications generally look at PHP directories. There is this sense that perl is outdated.

    People like PHP because it doesn't involve setting permissions. It's common for designers to "bank on" a web server configuration working properly. This is shown by the way nearly all PHP "applications" have database passwords embedded directly into the PHP code, IN WEB SPACE. Try to design securely and your customers get confused by the notion of "out of web space" (secure design means passwords are NEVER stored in a web accessible file, even if it does end in .php)

    The "language" was not designed, it just sort of "happened". If you need extensions (and you most certainly WILL need extensions, such as XML..) don't bank on it. You can look forward to hours of fun chasing them down, working around host limitations, etc..

    If you're doing something "for fun"... pick another language. PHP is a cruel joke.

    1. Re:PHP - Because everyone else is doing it. by Anonymous Coward · · Score: 0

      Perl _is_ outdated. Have a look at Ruby, mate. ;)

  42. PEAR by StressedEd · · Score: 1
    There seems to be no mention of PEAR. In my opinion an extremely accessible and promising repository.

    With components like DB::DataObject, HTML::QuickForm and DB::DataObject::FormBuilder building web DB applications is shockingly quick!

    --
    Be nice to people on the way up. You will meet them again on your way down!
  43. Re:Why all of the PHP postings? by Jesus_666 · · Score: 1

    HTML is a pretty niche language with limited power. Everything it does can easily be accomplished by other means (TeX, OpenDocument...). How about paying more attention to more 'bread and butter' languages like RTF, BibTeX, and plain text?


    Seriously, PHP is quite good at what it's intended for. Sure, it doesn't have pointers and templates, but then again it's mainly intended for web development. You don't need pointers to generate a website. You don'd need absolut performance to generate site usage statistics. You need a language that is easy to use, versatile and powerful, in that order.
    You know, there's a reason why PHP is big and most people haven't even heard about CGI/C++ or CGI/Scheme.

    --
    USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
  44. I've been living under a rock by usidoesit · · Score: 1

    Just took a look at Plone/Zope yesterday. Dropped it on Win32, built it on SuSE 9.1 (couldn't use the SuSE 10 RPM bundle, oh well configure, make, make install...) Java failed to integrate everything cost-effectively. Python stands the best chance now. Ruby isn't ready. PHP, though productive, isn't even in the same league. Execs are eyeing the piecemeal array of fragmented systems that have grown up in the last 8 years and thinking MSFT for everything. Need to do something else fast. Python or MSFT, take your pick.

  45. Re:Why? by Anonymous Coward · · Score: 0

    This one is funny.

  46. PHP Developers Take note: by big+dumb+dog · · Score: 1

    It's been quite some time, now since I first read about IBM's interest in PHP. I believe that this posting is further evidence that IBM intends on taping into the huge PHP development communities, allow IBM to quickly make up lost ground to Microsoft.

    IBM's interest in PHP probably says as much about the established development communities as it does the language itself. I'm far from an expert on deploying technology globally, but I suspect that one of the biggest obstacles to overcome is finding qualified people to support it.

    It might be a good idea for PHP developers to start looking at RUP. Learning formal software development processes can only help anyone looking the take their PHP skills to the corporate world.

    --
    "Seven years of college down the drain. Might as well join the f-ing Peace Corps." - John 'Bluto' Blutarsky
  47. Comment for -1 post! by amightywind · · Score: 1

    HTML is a pretty niche language with limited power. Everything it does can easily be accomplished by other means (TeX, OpenDocument...). How about paying more attention to more 'bread and butter' languages like RTF, BibTeX, and plain text?

    I suppose I should welcome any comment for a posting modded at -1, even if your analogy sucks.

    Seriously, PHP is quite good at what it's intended for...

    You are not instructing the ignorant. I am complaining that the Slashdot 'Development Section' is being polluted with trivial PHP gunk of limited interest. Same goes for AJAX, C# and the mindless prattle that goes with them. The slashdot priests don't like to be called on it.

    --
    an ill wind that blows no good
    1. Re:Comment for -1 post! by Jesus_666 · · Score: 1

      Hm, that's true. But that's probably because Ruby, C# et al. are currently the trendy languages. Everyone's talking about it so Slashdot's talking about it. Slashdot is a newsblog, after all, and the editors have to have news in order to have a story (except for non-news stories, which happen about twice a year).

      Also, C++ isn't relevant for web development and that's what the Development section seems to specialize in lately. Probably because web apps are the new Dotcom and currently everyone is excited about turning their office suite, cron daemon and web browser into a web app. Preferably with AJAX, Ruby on Rails and rounded corners...

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
  48. Re:Why? by Anonymous Coward · · Score: 0
    This one is funny.

    The page comes up blank. Sheesh, you you think you'd have checked that before posting about it. Let me know when you get that fixed.

  49. Re:Why all of the PHP postings? by Tim+Browse · · Score: 1
    The theoretical power of php is really low. It's more its practical power that made it popular.

    So the fact that its theoretical power (whatever that is supposed to mean) is low is no reason to complain about lots of PHP stories on slashdot, because as you say, PHP is popular.

    And although it is a pretty huge niche where php fits it stays a niche by definition.

    The OP was obviously using the niche description to make PHP seem unpopular and insignificant, which is far from the truth.

    It was a laugh because the OP was clearly claiming that PHP was useless and nobody used it, so could people please stop talking about it?

  50. xslt is a quick route to BJC-compliant code by StandardDeviant · · Score: 1

    (BJC = Baby Jesus Cries)

    It's slower than dirt. Slow dirt. ;) PHP5 is better about it than PHP4, but it's still slower than a native php-based templating engine. (And that assumes the best case of using as just a templater, throw misguided people pushing business logic willy-nilly into the xslt and not really grasping the fundamentally functional programming model it exposes and crappy debugging support and so on and it turns into a real god damned nightmare. [We use php5 and xml/xslt at work, work being a financial industry site that gets a great deal of traffic.])

    And god bless the creatives / graphic-designers (because without them, our stuff would look like refried monkey butt), but trying to get them to understand bizarro-world logic puzzles that xslt can easily turn into is like trying to get a violinist to build a tank. ;) That was the original plan at $ork, apparently, but trying to explain things like variables not varying or scoping rules to them went over real well. So now they pretty much just stick to the graphics and css, and we get to handle the xslt as well as the backend systems.

    I'm sorry if this sounds too harsh, it's just my experience. Maybe in different places XSLT makes for happy times, but it's proven to be one of the biggest irritants about my current workplace, so my view of it has become rather dim.