PHP
  Home arrow PHP arrow Page 3 - PHP 5: A Sign that PHP Could Soon be O...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

PHP 5: A Sign that PHP Could Soon be Owned by Sun
By: Ian Felton
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 2 stars2 stars2 stars2 stars2 stars / 177
    2004-08-04

    Table of Contents:
  • PHP 5: A Sign that PHP Could Soon be Owned by Sun
  • How PHP5 is Similar to Java
  • New Features in PHP5
  • MySQL Functions in PHP5
  • Questions About the Future Direction of PHP

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    PHP 5: A Sign that PHP Could Soon be Owned by Sun - New Features in PHP5


    (Page 3 of 5 )

    On the positive side, this edition of PHP does bring improved performance and a new suite of MySQL functions. Backward incompatibility is limited to a list of ten issues that can be found at: http://www.php.net/manual/en/migration5.incompatible.php. Minimally, there are only minor configuration file changes that need to be made to the web server. These changes are found at: http://www.php.net/manual/en/migration5.configuration.php. Several directives have been introduced for configuring php.ini files mainly dealing with hashes for encryption. Read about them at http://www.php.net/manual/en/migration5.newconf.php.

    Some very useful functions have been added to PHP5. It’s been nine years in the making, but PHP5 now includes two functions to uuencode and uudecode. Combining those functions with the new socket and stream functions, developers can create a lots of "kewl" applications. An application to automatically encode and decode files to and from news servers comes to mind as an example of how to incorporate these new functions. At that point of course, a developer could use any of PHP’s existing functions to continue to manipulate the files, store the contents in databases, and so on. Read about those and all the other new functions at: http://www.php.net/manual/en/migration5.functions.php.

    An addition to error reporting aids developers in keeping their code up-to-date. The E_STRICT message tells developers when their code is using deprecated functions or is in danger of not being forward compatible. However, don’t assume that E_STRICT will be output if using E_ALL, because it won’t. E_STRICT must be explicitly declared to output its suggestions to PHP 5 code.

    While the rewriting of PHP’s object model to essentially that of the Java object model does raise flags about the direction of PHP, it is still a powerful addition to the PHP5 release. Java became successful for a reason. It’s intelligently designed and facilitates code reuse. By borrowing the best features of Java’s object model, PHP has leveraged itself with far more credibility as a programming language that can stand on its own two feet (even if Sun, Borland and Macromedia are holding it by its arms).

    Some vital re-workings in the PHP object model lie in how objects are treated in low-level fashion. Instead of passing the actual object itself, PHP’s object model passes by reference. Now when operating on objects, developers can pass around multiple handles to the actual object allowing for more powerful and efficient applications. Existing PHP objects do not need to be re-written to take advantage of this change in PHP 5.

    In general, developer’s who have experience with Java will easily adapt to PHP 5’s object model. On the downside, if PHP is a developer’s primary language and he or she hasn’t been introduced to the world of static variables, public and private methods and the host of aspects included with this new model, they may have a bit of a learning curve adopting the higher-level format of object-oriented programming in this release. Overall, though, this change will be a plus for creating large-scale, object-oriented applications with PHP.

    More PHP Articles
    More By Ian Felton


       · While I found your article interesting, I can't help but think - why couldn't the...
       · Well I dont know that you are wrong or the author is right. I think that its hard to...
       · First, the people that develop Zend are part of the people that develop PHP. The...
       · I thought this article actually brought up some interesting concerns - I would...
       · Oh my gosh! McCarthy has come back from the dead and become an anti-open source...
       · Every fact I write about is a fact. When I speculate, I say so. The quote came...
       · I wrote the anonymous post above... wasn't logged in. heh ;)But yes, if you read...
       · Wow what a stretch. New improved PHP and the end of the world. Sun is a company that...
       · spec·u·la·tion - n. Contemplation or consideration of a subject; meditation. A...
       · I've never been as disappointed in a Dev Shed article. The jumps in thought...
       · You are dissapointed in a article because it holds a different position than your...
       · Could you explain in detail the jumps in logic?What PHP is, is what it is. What...
       · First up, thanks for the article. I found it informative and interesting. Second, to...
       · Sorry, I still don't get it. You are saying Sun could possibly take control of a...
       · Listen folks--This article is an eye opener, it is the conjecture of one man. I...
       · I like the fact that this article was an eye opener and whether you agree or not...
       · I'm a little confused. If this article is saying PHP is like Java because of it's...
       · The reason and only reason MySQL libraries are not included with PHP was due to...
       · completely agree
       · No, I was saying that PHP mimicked JAVA's object model so it could integrate with...
       · You should ask yourself why they changed the license. According to MySQL it was...
       · If PHP becomes a corporate shill, it isn't a positive thing, it isn't a negative...
       · All the marketing vs. engineering talk about .NET obscures the fact that it does...
       · I'm not sure of what you mean. If SUN gets control of PHP but leaves it open source...
       · How would you like to have to run Sun's web server and only Sun's web server to run...
       · PHP's basic objective is still to create easy to use tools, so what MySQL support is...
       · Sure you can speculate here all you want, but of course it's simply illogical and...
       · Ahhh... your all STUPID ASS CLOWNS!!!!
       · Wow, someone finally got it. Thanks for the insight. I thought I was a stupid ass...
       · S/He couldn't think critically and write as elequent as the big guys so s/he...
       · Now that is the typical response a troll like you would give.Look at the rating...
       · What posts are you reading? There seems to be quite a lot people thinking critically...
       · How come the article doesn't stress the fact that instead of bundling the MySQL...
       · You need to separate corporate PR and fact. Zend does not in any way own PHP, nor...
       · Wait a second... separate corporate PR from fact... are you saying... no... are you...
       · ok! they are all stupid ass clowns, and you are stupid ass mime;-)
       · What I noticed that Zend's press releases are pretty much found irritating by quite...
       · That is wrong. There are a couple of reasons:1. the license2. we have a new...
       · I forgot one:4. Most people were using an external library anyway, as that is...
       · Sun has invested too heavlity in JSP and the J2EE platform. So its more likely that...
       · "If Sun has their eyes set on PHP to replace the turd JSP turned out to be".I...
       · ButtonHead - One who cannot think critically"Mmmmmm... Need PHP code... Mmmmm......
       · "How would you like to have to run Sun's web server and only Sun's web server to run...
       · Right on, I know what you mean, but when it came out, the big deal was separating...
       · One thing is about licenses and legal, but other is about the result..Sun could...
       · LOL - IAN That has to be one of the funniest comments I have ever read. :)
       · One problem with this article is the absence of precedent. I encourage the author...
       · There doesnt have to be a precedent in order for something to take place. There is...
       · I don't understand why an article with such an interesting subject would get such a...
       · The Unisys GIF patent is an example of the type of activity I'm talking about. The...
       · True, but that makes for a pretty weak argument, especially when the past has shown...
       · When was the UNISYS gif patent licensed open-source? That's just an example of...
       · Nevermind... I'm done clarifying my obvious points. So many people don't want to...
       · I'm not saying you're wrong. I'm not attacking you. I'm simply giving you an...
       · Proof of what? Where do I say hostile takeover? Where is the hijacking? If you read...
       · I hate to use your own words against you, but here I go.[i]We are talking about...
       · One other thing, if it takes 5 readings to really understand your article, maybe you...
       · PHP4's object system was badly broken - it didn't even have private methods. It was...
       · "All that's being talked about is change and unfortunately so many people see change...
       · [i]say these terrorists on camels figure out a way to pollute the PHP...
       · I guess you could worry about Sun or Zend slipping some code into PHP that would...
       · Actually, I think OO is a great feature. It does promote code reuse and easy...
       · I agree,nothing wrong in copying Java, but please only the OO design ...oh...
       · OK, good. As long as you aren't picking on me.
       · Very interesting article! While some are looking at the minor changes as simple...
       · IF what prophesised happpens it will be good in the long run!!
       · I am no expert on the subtle/not-so-subtle actions of companies like Sun or Zend;...
       · You seem to be under the impression that Sun is the one envying PHP. I believe it is...
       · I agree
       · I agree. Sure this is possible, but it is also technically possible that aliens will...
       · This is an excellent point and I fully agree with it.
       · ...
       · A nice article this one. I too think it unlikely that a corporate would be able to...
       · Tainting the code would imho be the only way to proprietarize PHP, if there appear...
       · I'm not sure about the what the possibilities to PHP being consumed by Sun, and...
       · Well, this comment was mine, I thought I logged in, but apparently not... I don't...
       · now what they ever do php must remain freeso i suggest to begin a website for php...
       · It's not so much the threat of paying for PHP, it's the threat of PHP shifting focus...
       · It's not so much the threat of paying for PHP, it's the threat of PHP shifting focus...
       · >>That sounds like hijacking to me. I know you didn't use the exact phrase, >>but...
       · You miss the point again. Consider it de-programming.
       · I WON! I Really won!!!
       · Me too. I agree too.
       · I hope PHP is not consumed by Sun, but I doubt it will happen. Sun won't be around...
       · With all due respect, IMHO .Net is a vastly superior tool than JAVA. And...
       · I'm not so worried about this. I am worried about PHP getting as unknowable as...
       · Smalltalk was the first object oriented programming language. What about C++, C#,...
       · Wow.
       · Wow! Just tell them they're all about to be 0wn3d by Sun!function...
       · 1) Capital in businees needs to generate new capital. This isnt about evil or good,...
       · I think the article presents and interesting possibility. The folks over at Zend...
       · Now I know this is an old article and all, but all I have to say is wow. This is...
       · what i woulda said.
       · As someone who is just starting to develop with PHP and MySql this has been very...
       · Well from what I have seen, read, experienced. JSP is no lighter than PHP and will...
       · If the author knew anything about the history of computer languages he would know...
       · PHP is to large of an open source project for us to have to worry about this. As...
       · yahoo doesnt run all on php
       · neither does excite
     

       

    PHP ARTICLES

    - Building a Content Management System with Co...
    - Filters and Login Systems for Web Applicatio...
    - Working with the Email Class in Code Igniter
    - Building Your Own System Tray Application Us...
    - Structuring Your Projects for Web Applicatio...
    - Inserting, Updating and Deleting Database Ro...
    - Building Your Own Desktop Notepad Applicatio...
    - Web Application Security Overview
    - Working with the Active Record Class in Code...
    - Generate PDF Documents with PHP on the Windo...
    - Sending Email with PHP Networking
    - Performing Strict Validation with the Code I...
    - The preg_replace_callback() function in PHP
    - PHP Networking
    - Validating Web Forms with the Code Igniter P...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT