SitePoint Sponsor

User Tag List

View Poll Results: What is your level of support for PHP 5?

Voters
140. You may not vote on this poll
  • I only write PHP 5 compatible code. I use PHP 4 only on PHP 4 servers.

    107 76.43%
  • I attempt to make my code compatible with PHP 4 whenever possible.

    19 13.57%
  • I only try to write PHP 4 code.

    14 10.00%
Page 4 of 4 FirstFirst 1234
Results 76 to 83 of 83
  1. #76
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We only develop for PHP5 using OOP.
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  2. #77
    SitePoint Addict
    Join Date
    Nov 2005
    Location
    Moss, Norway.
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This development goes so fast that some libraries / API's have problems picking up.

    PHP Extension and Application Repository, PEAR founded by Norwegian Stig. S Bakken has some advantages:
    • Large community
    • A centralized location for libraries.
    • Packages follow set coding standards
    • Support available through the web site or a mailing list
    • Quality code
    • Governed by the PEAR group to guarantee that standards are fulfilled.
    • Bugs constantly fixed.


    Have noted that there is differences in the SimpleXML functionality that came with PHP 5.0. Some functions are changed from PHP 5.0. to PHP 5.1, for example the

    simplexml_load_file() function.

    Read more here:
    CLI. SimpleXML functions

  3. #78
    SitePoint Zealot
    Join Date
    Sep 2006
    Posts
    145
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have complete control over which servers the code will finally be run on, so I exclusively use Media Temple in a PHP5 environment.

  4. #79
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Location
    Whistler, Canada
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Since I take care of the hosting of my clients' websites myself, I write PHP 5 only, with exception for stand alone scripts for existing websites.

  5. #80
    SitePoint Member samyak_bhuta's Avatar
    Join Date
    Jul 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP 5 Here.

  6. #81
    SitePoint Enthusiast
    Join Date
    May 2005
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stymiee View Post
    I'm surprised the the responses so far. I never thought PHP had such support from developers. That leads me to believe that is support for existing PHP 4 scripts that is causing hosts to hesitate a move to PHP 5. I guess if the major players in open source/free scripts make the move to PHP 5 in February then we can expect to see a shift in webhosts' support for it. What kind of an effect do you think this shift will have on the uptake of PHP5 on webhosts and new PHP programmers?
    Exactly; the world will break when we (hosts) move to PHP5.

    Not sure if anyone's said this, but it's becoming common practice for hosts to run both these days, and allow them to be switched on a per-directory basis. So you can then run either PHP4 or PHP5 without problem.

  7. #82
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Voted "I attempt to make my code compatible with PHP 4 whenever possible.", mainly because most users still uses PHP4.

    I however only use PHP5 code for my own projects/websites.

  8. #83
    SitePoint Addict MrBaseball34's Avatar
    Join Date
    Sep 2002
    Location
    Round Rock, Texas
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rjm1982 View Post
    <SNIP>
    I fail to understand why the folks at php haven't made a simpler solution to multiple versions. It makes sense in the environment that the software is working in, to provide a way to have php4 AND php5 installed and running seamlessly (no cgi/apache/whatever mess) that could be as simple as setting a var in the htaccess to tell it which interpreter to use. If anything would promote the rapid acceleration of the growth of 5 and future versions, that would be it.
    <SNIP>
    You can do this now in httpd.conf by making php5 scripts use
    a filename extension of php5.

    What gets me is that hosts are being reluctant to make the
    change and it's hindering the developers. I just had an
    argument with my current host about it and am searching for
    a comparably priced PHP5 host. My account doesn't expire
    until May 08 and I won't be renewing with them. I am doing
    development on my dev machine in PHP 5 and won't be ready
    to deploy until then anyway.

    In a way, it reminds me of the Y2K issue without the
    consequences.
    MrBaseball34
    Hook'Em Horns!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •