Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP software

Name: mizukami !qZIhB0izmw 2005-06-30 2:34

I picked up a book on PHP that seems pretty good as a learning book and reference material.

Problem is, they don't state the software you need to test your code!!

I've got Tomcat on my system as a webserver, but what else do I need to be able to run and test my PHP code?

Note: The book goes into depth into XML technologies: SAX, DOM, XPath, and XSLT. Software to run these scripts would be nice too.

(a web page tutorial for intro to PHP and setting up your system to use it would be great, first and foremost)

Name: Anonymous 2005-07-02 4:30

http://n3dst4.com/articles/phpannoyances/
   1.  No real references or pointers, just reference-by-name and sort-of aliases. Sometimes, I want a pointer.
   2. No idea of namespace. Except maybe for classes, but even then the class definitions aren't namespaced. There isn't even a recommended way to name your classes to avoid hassle.
   3. No componentization unless you kluge it yourself.
   4. Desperately wants to be Perl, but desperately doesn't want to be Perl.
   5. No standard DB interface (well, except ODBC, but blech)
   6. All PHP community websites are written for non-programmer weinies. The whole thing seems oriented towards gimboids who can't understand the slightest bit of theory and have to be shown 'how to write a calendar' instead of 'how to use date arithmetic and come up with your own bloody answer'.
   7. No chained method calls. Please, someone tell me I'm wrong on this, but I couldn't make PHP understand $foo->bar()->baz(). And not only that, but no discussion of the subject, anywhere. Too confusing for your average PHP user I suppose.
   8. No globals except by importation - that's a side-effect of "no namespace protection".
   9. register_globals used to bite. At least it's now $_REQUEST, but that bites too. What's wrong with named arguments?
  10. Arrays are hashes.
  11. PHP works best when you forget everything you've ever learn about good programming practices. Unfortunately, that still doesn't mean that good practice is expendable. Your code will still bite.
  12. include() uses filenames. That's yet another namespacing thing.
  13. The built-in functions all look like they were rejected from K&R C for being too terse, or rejected from Java for being too verbose. Why not just choose sensible, meaningful names? Oh that's right - no namespaces.
  14. PEAR just ain't CPAN.
  15. You can't interpolate array indices in strings. Poop.
  16. No 'use strict;' (e.g., checking variable names)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List