Professional PHP

PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.
« Upgraded to WordPress 1.5
PHP Application Security »

PHP first impressions from a J2EE programmer

February 19th, 2005

I ran across Cedric Otaku’s blog entry about his first impressions working with PHP as an experienced Java programmer. Not surprisingly, he chose PHP partly because it was already available on his ISP.

He highlights syntax, available libraries and string handling as PHP’s strengths.

He has some problems with the scoping rules and with the lack of namespaces.

Reading between the lines, I also wonder if he might prefer a stricter error_reporting setting.

Perhaps as a PHP advocacy issue it might be helpful to have a ‘PHP for Java programmers’ chapter of the PHP manual on php.net. I’m not sure how far something like this might go, but the seed seems to be there. A while ago, I started to compare the PHP response handling to Java’s HttpServletResponse. Request Handling is here.

A comment on this post is disturbing. It calls PHP ‘dangerous’ from a security perspective because of the recent phpBB vulnerability. To be fair, I have to admit that the /e modifier of preg_replace is obscure. (I’ve started compiling a list of Security Sensitive Functions in PHP.)

Filed Under

  • PHP

Related Posts

  • A Comparison of the PHP and Java Job Markets
  • Zend Framework Webcast
  • API Design
  • Richard Thomas
  • Comparing PHP with other languages
You can leave a response, or trackback from your own site.

4 Responses to “PHP first impressions from a J2EE programmer”

  1. Cedric says:
    2/20/2005 at 6:01 pm

    Hi Jeff,

    Indeed, a stricter error reporting is quite useful, but I suppose I’ll have to set it in my PHP code since my ISP will most likely not let me edit their PHP.ini.

    Thanks for the comment.

    –
    Cedric

  2. Justin Austino says:
    1/28/2011 at 12:23 pm

    This is a terrific blog, I located your blog page doing research google for a related theme and came to this. I couldnt find to much alternative info on this posting, so it was great to discover this one. I definitely will be back to check out some other articles that you have another time.

  3. Mafalda Dreesman says:
    12/27/2011 at 4:15 am

    Dear Sir
    I always read your comments on Bigadda,but rarely submit my comments.
    Today When I read that you were hurt in shoot,I was really disturbed and worried..I hereby send my good wishes for your speedy recovery.
    Please do take care of yourself and all the best
    Kind Regards
    Amitabh Sharma
    Solicitor
    Supreme court Of England and Wales
    United Kingdom

  4. hotele spa says:
    3/15/2012 at 8:36 am

    Excellent write-up. We certainly adore this site. Stick to it!

Leave a Reply

Click here to cancel reply.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

code: use [code=php][/code].

Comment Preview

    Subscribe Feed
    Share Subscribe to this blog…
    Share Bookmark or share this page…
  • About

    My name is Jeff Moore. I'm a PHP programmer living in San Francico and working for a startup.

    More about me…

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (18)
    • Open Source (14)
    • PHP (99)
    • Software Design (29)
    • Usability (14)
    • Web Design (20)
  • Recent Comments

    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  258
      Tuan Lal, Lavagem de estofados, Edward L. Kind [...]
    • php | tek 2008  36
      how to mend ice machine, Akademija Debelih, Odbacena [...]
    • goto in PHP  59
      kasor, Thomas Valdivieso, Murray Ziadie [...]
    • Firefox Extensions for Web Developers  33
      kasor, Website Design Toronto, mobila bistrita [...]
    • Why PHP is easier to learn than Java  68
      kasor, Justina Calvery, Guy Lipton [...]
    • Meta Tag Refresh Faux Paux  43
      html email templates, E-Juice Reviews, image [...]
    • Improved Error Messages in PHP 5  49
      Carroll Tina, Przeprowadzka, Emery Harari [...]
    • Benchmarking PHP's Magic Methods  33
      kayu oyunlar?,dora,oyun,oyna, Benjamin Bejjani, paypal website [...]
    • Microbenchmarks of single and double qouting.  24
      kefir grains minneapolis, sexshop dildo, tuim688 [...]
    • PEAR Templates  17
      Kandice Sansing, car insurance estimates for teenagers, Dale Brence [...]
  • Recent Posts

    • Richard Thomas
    • ZendCon: Writing Maintainable PHP Code
    • Looking Towards the Cloud
    • Holiday Tech Support
    • Closures are coming to PHP
    • php | tek Wrapup
    • php | tek 2008
    • Sarah Snow Stever
    • Benchmarking PHP’s Magic Methods
    • The Endpoints of the Scale of Stupidity on Video
  • Site

    • Archives
    • Log in
  • Search