Slashdot Mirror


PHP 5 Beta 1

Sterling Hughes writes "The PHP development community is proud to announce the release of PHP 5 Beta 1. Downloads are available in both source and binary form (for Windows users). A full list of changes is available in the ChangeLog. Some of the new features include much improved OO support, completely revamped XML support, and the default inclusion of SQLite."

44 of 398 comments (clear)

  1. They pulled MySQL out! by baptiste · · Score: 5, Interesting
    Check this:
    Due to issues surrounding the MySQL 4.0 license, the MySQL are no longer bundled with PHP. For more information on these licensing changes, please refer to the MySQL Licensing Policy.
    Wow - that's not a smart move. I guess this is a GPL (MySQL) vs Apache (PHP) license issue? Anyone have more details?
    1. Re:They pulled MySQL out! by CausticWindow · · Score: 5, Informative

      Check this thread on Google groups.

      --
      How small a thought it takes to fill a whole life
    2. Re:They pulled MySQL out! by Triumph+The+Insult+C · · Score: 3, Informative

      what's so difficult about using your own mysql installation? this refers to the bundled libraries. aside from changes mysql has made to 4.1, this is a non-issue.

      maybe this will get them to included a bundled version of postgres

      --
      vodka, straight up, thank you!
    3. Re:They pulled MySQL out! by baptiste · · Score: 4, Insightful

      Ah - well man they need to be clearer about it - the phrase makes it sound like they pulled out MySQL support. The Changelog mentions the library - but even it is really brief. I always thought PHP used your local libraries anyway - I didn't realize it came with them in 4.x

  2. Improved OO! by Anonymous Coward · · Score: 4, Funny

    That's right, now you can say class { @P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
    @p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q *=2) +=$f=!fork;map{$P=$P[$f^ord
    ($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[ P.]/&&
    close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];slee p rand(2)if/\S/;print }

  3. Turning into Java? by alannon · · Score: 5, Interesting

    Take a look at the OO changes page. The syntax seems to be converging with Java. I find this amusing in some ways.

  4. Problems with newer versions by Sanity · · Score: 4, Insightful
    I recently developed a number of sites in PHP and ran into serious problems when it became clear that most hosting providers use older versions of PHP, and are scared to death to upgrade lest they screw things up for their existing users.

    The PHP people need to provide ways that people can upgrade the versions of PHP on their system such that they can be reasonably sure that existing users aren't suddenly going to find their sites don't work.

    1. Re:Problems with newer versions by larry+bagina · · Score: 5, Informative
      I agree. Even though there are huge differences between version 3 and version 4 (and now version 5), there are also lots of differences between minor versions -- stuff like new functions, changes to how functions work (beyond just bug fixes), etc. Nevermind that there are hundreds of optional libraries and setup parameters, making every installation unique.

      If you're doing a non-trivial php site, and trying to make it work with different versions of php (osCommerce, for example), you end up having to rewrite many functions yourself to make sure they work consistently.

      I like PHP, but it suffers from an "incrementalism" design approach. Some stuff really needs to be rethought, and I think PHP 5 is on the right track to doing that.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    2. Re:Problems with newer versions by Sanity · · Score: 4, Insightful
      If you're doing a non-trivial php site, and trying to make it work with different versions of php (osCommerce, for example), you end up having to rewrite many functions yourself to make sure they work consistently.
      Absolutely, this is exactly the experience I had.
      I like PHP, but it suffers from an "incrementalism" design approach. Some stuff really needs to be rethought, and I think PHP 5 is on the right track to doing that.
      I hope you are right, but right now I am more concerned about how to deal with differences between different PHP4 versions - it is immensely frustrating to inadvertantly use a function only to discover that it doesn't exist on your new ISPs version of PHP (and of-course they won't upgrade for love nor money lest they upset their other users).

      Someone involved in PHP needs to take a cold hard look at this issue and figure out how to tackle it head-on, or they will find that with each new version, people take longer and longer to take advantage of new features which will cause PHP to stagnate.

      With Java, at least I know for a fact that some Java 1.1 code will work with Java 1.4 and as a result most ISPs keep their Java versions quite up-to-date.

      Until the PHP team treat lack of backward compatability as a bug, this problem will persist.

    3. Re:Problems with newer versions by Motherfucking+Shit · · Score: 4, Interesting
      The PHP people need to provide ways that people can upgrade the versions of PHP on their system such that they can be reasonably sure that existing users aren't suddenly going to find their sites don't work.
      The only major compatibility issue that I can think of between, say, the 4.1 branch and the 4.3 branch is that register_globals defaults to 'Off' in newer versions. If you leave it that way after installing, then yes, a lot of older scripts will break. Most of the shared/virtual hosting providers I've had to do script installs on, which have actually upgraded their PHP versions, just installed 4.2x or 4.3x and then manually turned register_globals back to 'On' in the php.ini file.

      To the best of my recollection, there isn't much else that's not backwards-compatible. Even where functions have been renamed (e.g. socket_get_status), the old function names still work, and while deprecated, they don't seem to be going anywhere soon. I have no trouble digging up stuff I wrote back in '99 or 2000 and getting it to work under PHP 4.3; though I do have to enable register_globals in those cases.

      Only problem I ever ran into with PHP where stuff quit working after an upgrade was on a test Apache2 server. It turned out to be a bug related to posted form data. I wouldn't use Apache2/PHP on a production server yet anyway, though; and 1.3.27 still gets the job done. I haven't had time to play with PHP5 yet, so I'm not sure what the differences are in that version.

      I agree at the surprising number of hosts who simply haven't updated, though. There are a lot of hosts still running 4.1x, and even (yikes) 4.06, who just won't upgrade for whatever reason. I do most of my coding these days on 4.2 or 4.3, and have run into plenty of belligerent hosts who refuse to upgrade from a two-year-old release. Typically I just have my clients move to a better host; the providers who don't stay reasonably with the times will eventually figure out that it's hurting their bottom line.
      --
      "BSD: Free as in speech. Linux: Free as in beer. Windows 10: Free as in herpes." --Man On Pink Corner in #52607549.
  5. Re:mysql? by Triumph+The+Insult+C · · Score: 5, Informative

    --with-mysql=/path/to/mysql

    bundled being the key word

    --
    vodka, straight up, thank you!
  6. Yeah Yeah... by Second_Derivative · · Score: 3, Interesting

    It's still lumped into a great big inconsistent namespace

    It's still made by a for-profit company who hobble the product in order to not cut into their profit margins too much (Hello? Zend Cache? Optimiser? Compiler? Everything's free in PHP-Land, for a small fee in PHP-Land...)

    I don't mind so much the fact that you can't have servlet-like objects which handle entire sections of your URLspace (as opposed to one URL -- how very un-spider-friendly. Most choke on a ? in a URL and rightly so) and remain persistent (allowing you to do funky stuff like ... pool database connections maybe? no, mysql_pconnect() doesn't count. Oh, and what's with this SQLite thing? had a bit of a fallout with the MySQL team?) ... because that kinda defeats the point of PHP anyway.

    But come on. Fellas. PHP: Hypertext Preprocessor is the name. Not PHP: Application Server. If those first two issues were fixed it might actually make a seriously powerful hypertext preprocessor. That's something it's reasonably good at. But at the moment it's some sort of bastard preprocessing language run amok that people use to write whole web applications with and other stuff Nature never intended. Perl's got an awful syntax and a total lack of convention (and mod_perl is really byzantine), and I really really really really ..... (x47) really want to like Python, but it's not re-entrant and has a big interpreter which makes its threading capabilities into nothing more than a silly joke (and last I checked, efforts to rectify the situation died back in, what, 1997?), so yeah I admit I use PHP for quite a few web devel jobs. But just because everything else sucks more, doesn't mean PHP doesn't suck any less.

    I'm not even sure what my point is anymore. But, I think what I was trying to say was this isn't much. Same stuff is true of PHP as has always been true of it... wake me up when they get round to PHP6. An earlier rant I made comparing Perl to PHP (I think I preferred Perl back then) is here. The extended comment history is pretty much the only reason I got a subscription and to be fair I think it's worth the money.

    1. Re:Yeah Yeah... by eadz · · Score: 3, Informative

      I don't mind so much the fact that you can't have servlet-like objects which handle entire sections of your URLspace
      You can! Use a PHP file instead of a directory for your DocumentRoot in apache.
      I.e DocumentRoot /var/www/servlet.php
      Now all requests are handled by servlet.php.

    2. Re:Yeah Yeah... by Second_Derivative · · Score: 4, Informative

      Nah, I reckon one could handle it like this...

      <VirtualHost *>
      ServerName www.myhost.com
      DocumentRoot /home/myhost/engine.php
      Alias /res /home/myhost/resources
      </VirtualHost> ... or something. I tried it on my server and it seems to work a treat. Once again cheers for the tip

    3. Re:Yeah Yeah... by pacman+on+prozac · · Score: 4, Informative

      My biggest complaint about PHP is the joke that they pass as "error handling". Yeah great, thanks for exposing all my path names to the outside world if something goes wrong.

      Psychic abilities will be added to PHP as of version 6.6.6. From here on you will be able to simply think of the configuration you want and it will be set in php.ini. No longer will you have to read the extremely comprehensive online docs including the manual and especially not the ENTIRE SECTION dedicated to error reporting and logging that tells you extremely clearly how to do what you have just complained is impossible. You would not need to read that page and find the two links within the 1st side that show very clearly information on the display errors, error_log for custom logs and of course log errors to put the errors in the apache logfile.

      Your biggest complaint is that you are too lazy to read the manual and you expect everything to be done for you. No programming language can help you with this.

  7. The obligatory predictions... by UsonianAutomatic · · Score: 5, Funny
    1. PHP Sucks, Perl is a much better language.
    2. PERL sucks, PHP does most of the same stuff Perl does but you can still read your own code a week later
    3. PHP isn't a real language, it's just a bunch of wrappers thrown around stuff. PHP sucks.
    4. Who cares about MySQL support, MySQL's not a real database anyway. MySQL sucks. PostgreSQL rulez.
    5. WTF I upgraded to PHP 4.1.2 and all my form submit scripts stopped working. Whats this register_globals crap anyway what a pain.
    6. Continue with language specific criticisms; loose typing, OO not as strong as Java, et cetera.
    1. Re:The obligatory predictions... by glwtta · · Score: 4, Funny
      You forgot the obligatory followup to number 2:

      WTF is "PERL" anyway? PHP sucks, Perl rules.

      --
      sic transit gloria mundi
    2. Re:The obligatory predictions... by Tablizer · · Score: 3, Funny

      You forgot one:

      7. OOP sucks, there is no proof it is better, it is only a personal choice that maps to some people's head better but not all and the reuse claim is so 80's because up-to-date OO'ers don't claim that anymore.

      If you are gonna put a troll out of business, do it right ;-)

    3. Re:The obligatory predictions... by Xpilot · · Score: 3, Funny

      6. Continue with language specific criticisms; loose typing, OO not as strong as Java, et cetera.

      The word "loose" was used correctly in a Slashdot comment! Quick, take a picture!

      --
      "Backups are for wimps. Real men upload their data to an FTP site and have everyone else mirror it." -- Linus Torvalds
  8. Requires Microsoft Visual C++ by yerricde · · Score: 5, Interesting

    MySQL isn't bundled with it, but you can easily add it yourself when compiling.

    Compiling?

    Compiling PHP for Windows requires the Microsoft Visual C++ compiler version 6.0 or later.

    The Microsoft Visual C++ optimizing compiler version 6.0 or later is available only from Microsoft as part of Microsoft Visual Studio .NET, which costs $1,079 for one non-academic seat. (Microsoft no longer sells a Visual C++ optimizing compiler separately.)

    Some people are bound to bring up the $109 Microsoft Visual C++ Learning Edition, but 1. the EULA attached to its library probably does not permit distribution of generated binaries nor public performance (i.e. use on a public web site) of generated binaries, and 2. because it does not have an optimizer, the speed of generated binaries is closer to that of an interpreted program than to that of a compiled program.

    If I had any spare time, I'd fix this by porting the build to MinGW.

    --
    Will I retire or break 10K?
    1. Re:Requires Microsoft Visual C++ by Anonymous Coward · · Score: 3, Informative

      MySQL isn't bundled with it, but you can easily add it yourself when compiling.

      Compiling?

      Compiling PHP for Windows requires the Microsoft Visual C++ compiler version 6.0 or later.


      Exactly version 6.0, not "later" (because you can't compile/link with GPL stuff with the 7.0/.NET compiler due to licensing restrictions).

  9. But how? by yerricde · · Score: 3, Insightful

    what's so difficult about using your own mysql installation?

    How do I tell binary PHP to use the installed binary MySQL?

    Please read this comment before replying with such an answer along the lines of "compile it yourself".

    --
    Will I retire or break 10K?
  10. Yawn by Anonymous Coward · · Score: 3, Interesting

    I'm a PHP programmer and I've begun to recognize a pattern in software: when will we see the end?

    Truly, what more can you add to PHP? Why do most software packages continue to add features without actualy providing a subjective goal to strive for?

    For example, in the world of Microsoft(R) Windows we see the same operating system have plastered above it "Where do you want to go tomorrow" and above all "n% faster than previous, more stable, etc." When will the goal of a products feature-list finally be met?

    I know Perl5 accomplished its goals, and then they had an {ap-if-in-ee} to add the RegEx in yet another release of Perl titled Perl6. When will they ever make a product that has a goal? I don't call this competition...I call it beating a dead horse from its grave, like how Intel puts rocket boosters on its crumy brick CPU architecture (Pentium Pro) and adds some more features.

    Look at netBSD; it isn't dying, it's still working on its number-one goal: security.

    Linux is the same way; it stated from an original design and now is being extended. Am I sounding like I expect a new feature to be a new product? I don't think so... GNU/HURD, of which I know many people are skeptics unto, is builind upon its goals of being a Micro Kernel and add some. What if Linux all-of-a-sudden wanted to become a Micro Kernel? What if Microsoft(R) Windows(TM) all-of-a-sudden wanted to become a Micro Kernel?

    The software names, after huge changes to extend their capabilites, are becoming misleading! If you take out a RedHat Linux 5.2 system and compare it with RedHat Linux 8.x, you can't say they are both similar Linux; they are completly different! Sure, it's like comparing apples with oranges on the old and new RedHat, but Kernel-wise the latest Linux Kernel may look completly different and have completly different goals and features than what was hoped for in the verry early Linux kernels. Shouldn't to cause less confusion and more inspiration, they leave the Linux name behind with the old design and all the new stuff that would completly change Linux's software (mechanical?) appearance become known as the new project Herring(TM). I anticipate most of you will reply with "That's why we have VERSION NUMBERS", but hey? You're missing the point.

    Microsoft(R)'s Windows(TM) name isn't describing the project's code name, yet the product's retail names are somthing like 95, 98, NT, 2000, XP. Well, it is honest to say that the NT and 2000 products are similar, 95 and 98 products are similar, and the XP product isn't quite similar to 95 and 98 and 2000, but then there was the fiasco that all the 9x users went out to buy product Windows(TM) 2000 and found they had been tricked by Microsoft that 2000 would be like a 95 or 98. Anyone see my point?

    As for PHP, and perhaps Perl... Does anyone think they should continue calling those products by their initial names AFTER the programming syntax and methodology becomes completly different or non-compatible than they were first designed?

    I'm looking forward to some intelligent answers. Thanks and I'll be a PHP and Perl programmer for a long time to come. d:-)

    1. Re:Yawn by damiam · · Score: 3, Insightful
      I'm looking forward to some intelligent answers.

      You're new here, aren't you?

      --
      It's hard to be religious when certain people are never incinerated by bolts of lightning.
    2. Re:Yawn by Hard_Code · · Score: 3, Insightful

      "I know Perl5 accomplished its goals, and then they had an {ap-if-in-ee} to add the RegEx in yet another release of Perl titled Perl6."

      Have you even READ anything about Perl6? Any of the apocolypses or exegises? After lots of incremental crud got added in the (very successful) Perl5 series, they are stepping back, rethinking, refactoring, and reimplementing with a very clear and concise goal of optimizing the syntax for the most used cases, as well as fixing known warts. Additionally they are doing this on top of a generic reusable virtual machine, instead of an ad-hoc specific-use interpreter. I don't even like Perl and I realize that Perl 6 is a Good Thing.

      --

      It's 10 PM. Do you know if you're un-American?
  11. Here's the word by john_smith_45678 · · Score: 3, Informative

    On Sat, 28 Jun 2003, Marc Richards wrote:
    > I apologies if this is the wrong place for asking. Is non-experimental
    > Apache2 support planned for PHP 5?

    Nope. Until someone sits down and goes through every 3rd-party library that can be linked into PHP on every platform and identifies whether or not they are threadsafe and under which conditions they remain threadsafe, using PHP in a threaded web server on UNIX is going to remain experimental.

    You can of course stick with non-threaded prefork mode, in which case you basically have Apache-1.3.x. Nobody so far have been motivated to test Apache2-prefork+PHP extensively, so even that combination is going to remain experimental.

    The basic problem here is that the average UNIX library has not been written with thread safety in mind. You can write very good specific threaded programs on UNIX, but it is extremely difficult to write something which can potentially link in hundreds of random libraries and expect them to all be threadsafe.

    -Rasmus

    http://news.php.net/article.php?group=php.internal s&article=%3CPine.LNX.4.56.0306272256280.6461%40th inkpad.lerdorf.com%3E

  12. JSP by nepheles · · Score: 3, Interesting

    The will be an interesting battle. JSP and PHP are now broadly identical in syntax and OO implementation. Who'll win? PHP is OS, but JSP has a huge amount of support from corporations.

    I'm betting on JSP

    --
    ((lambda x ((x))) (lambda x ((x))))
  13. Re:Windows Users by hhnerkopfabbeisser · · Score: 4, Insightful

    The sources can be compiled under Windows and most Unices.

    But since Windows doesn't come with a compiler, there is a binary provided for Windows.

    So what's your point?

  14. Re:Still re-coding for register_global_variables.. by FryGuy1013 · · Score: 5, Informative

    um..

    extract($_POST);
    extract($_GET);
    extract($_COO KIE);

    ?

    --
    bananas like monkeys.
  15. Re:XML transformation pipeline by jojo80 · · Score: 3, Informative

    Something like that already exists...it's called popoon and part of the bitflux cms project.

  16. Re:Kiss and say goodbye to Java language!! by HeadDown · · Score: 3, Informative

    > No Java, no JSP man. Simply use PHP for web development.
    > Forget Java man and go to PHP!
    >
    > PHP is 4 times faster than Java technology 'JSP' (Java server
    > pages).

    Substantiate that statement. What benchmark, what workload, etc.

    > This tallies because compiled "C" program is 4 times faster than
    > Java.

    PHP scripts are re-interpreted, at runtime, *for every page hit*.
    They're not C.

    > Moreover, PHP is getting the object oriented features of Java
    > language.

    Yeah, *finally*. Partially. This is the 1st go. Java was designed from
    the start to be OO, it isn't hobbled on like with PHP.

    > The real usefulness of Java is 'Java applets' which run on
    > client browsers but on the server side you simply use PHP.

    Substantiate.

    > PHP is a very lightening fast object oriented scripting
    > language. PHP is 100% written in "C" and there is no virtual
    > machine as in Java. Nothing can beat "C" language ("C" is a
    > language which never dies!!)

    Jeez, moron. What do you think the JVM is written in?

    > (Java is just another language. The PHP project needs millions
    > of Java programmers who can add the Java's language features
    > like inner classes, static, private, protected and others to
    > PHP. PHP already has some of java' features).
    > Java programmers will really "LOVE" PHP as PHP class is
    > identical to Java's class keyword.

    I use Java and PHP, and I *loathe* PHP. It's single redeeming feature
    is that it's everywhere. For the rest, it's a language with crappy
    library support, that actively emcourages mixing the presentation and
    business layer.

    > Read the benchmars of Java JSP and PHP. PHP tops in the speed!!

    Substantiate.

  17. Re:Kiss and say goodbye to Java language!! by crunchywelch · · Score: 4, Informative

    Uh, none of those links work, however here is a *recent* comparison of JSP and PHP using several different containers for JSP and PHP. It seems that the server setup has a great deal to do with the speed of the application (duh).

    It's interesting that people like to make comparisons to JSP and ASP all the time but don't remark on what platform they run on. Obviously JSP running on tomcat/apache through with mod_jk will be slower than with just plain Resin.

    And open should note that a statement like ' Kiss and say goodbye to Java language!!' almost sounds like a troll, when you consider Java is used for a great deal more than web applications, indeed the servlet functionality that JSP relies on is a *very* small portion of the overall tools that Java supplies to developers.

    But whatever, use the right tool for the job and try to remember it's technology, not religion. The more options the better IMO.....

    --
    1400x1250 in a 640x480 world...
  18. Re:Kiss and say goodbye to Java language!! by alannon · · Score: 5, Insightful
    PHP is a very lightening fast object oriented scripting language. PHP is 100% written in "C" and there is no virtual machine as in Java. Nothing can beat "C" language ("C" is a language which never dies!!)
    How did this barely-literate rant get modded up to +2? What difference does it make that PHP is written in C? Java is written in C, and the JIT has some hand-coded assembler in it as well. So what? The HOWTO that is linked to hasn't been updated in 2 years and the benchmarks linked in the HOWTO are no longer even on the web.

    The raw speeds of execution between JSP and PHP may be similar (though I suspect that JSP ends up being much faster once the JIT has kicked in and optimized it, after a few executions). Additionally, there are many different JSP runners (Tomcat is only the reference implementation) and the performance between them can be very large (I recommend the JSP runner by Caucho for performance-critical systems. Besides this, PHP and JSP have a very, very large difference between them:

    PHP is usually run as a apache mod or sometimes, as a cgi. Because of this, it cannot store session state or cache inside of its process (since the process is either apache httpd, or the cgi, which terminates at the end of a page run). To get around this, any session variables get serialized and stored to disk at the end of each run, then un-serialized at the beginning of the request. This also means you can have no application-level caches of database information, since there is no place to put these. This is fine for small stateful sites or large stateless sites, but for any serious, large web application that has to maintain a lot of state, this ends up being a big performance disadvantage.

    JSP, on the other hand, is run from a servlet runner in a persistent process outside of the apache process. At the beginning of the request httpd makes a socket connection (usually a local unix socket, very fast) to the servlet runner and sends the request there. This is slightly more overhead than everything running in-process, but gives you the huge advantage of being able to cache whatever data you wish to inside the servlet runner's process. This means database lookups can be cached, sessions don't need to be stored in disk, timers for maintenance functions can be set, all within the servlet runner's process. This is great for large, complicated web applications but obviously not great for small, stateless systems, since it requires the overhead of a running JVM at all times you want the application to be available.

    Two different types of systems, two different purposes. I happen to use both in my professional web development, but use only java servlets and JSP for serious projects.
  19. Breaking MySQL support - what *sses by wytcld · · Score: 3, Interesting

    Considering that I've been a Linux/Apache/MySQL/PHP developer since they each were available, it's just disgusting that they're making it harder to support MySQL at a time when LAMP is a recognized contender against Microsoft. I am not going to fscking rebuild a bunch of sites' dbs and recode MySQL-specific PHP code just because the GPL gives these guys a rash. Certainly when PHP was under Rasmus's authorship and control, he was never this sort of jerk.

    I'm not saying I can't take the trouble to link in MySQL libraries, just that there's no good excuse for the PHP folks to make me - and thousands of others - go to this trouble. They could, if nothing else, distribute their nonGPL PHP, plus a GPL kit that adds MySQL support, if they're too scared that the GPL will give them cooties.

    --
    "with their freedom lost all virtue lose" - Milton
    1. Re:Breaking MySQL support - what *sses by doe · · Score: 3, Interesting

      Its would mean breaking MySQL's GPL license if PHP bundled current version of MySQL client libraries.

      This because FSF claims that Apache and PHP licenses are not GPL compatible, thus linking against those is not premitted. It does not help that MySQL AB has chosen to change their client library license from LGPL to GPL after release 4.0 of MySQL

      Nothing to do with the PHP development team really.

  20. FREE!! -- PHP Encoder and Cacheing -- FREE!!! by Anonymous Coward · · Score: 5, Informative

    Yes yes.. To sooth all the scalp scratching surrounding PHP and FREE (quality) cacheing and encoding look no futher than

    MMcache - http://www.turcksoft.com/en/e_mmc.htm

    It's only a split second .001 slower than zend (faster than PHP Accelerator) and it FREE! Did I mention it works with Zend Optimizer , Zend Encoder and it can also Encode (protect) PHP files?

    I'm too damn good to you people! ; )


    PS: PHP makes programming fun again. Thats why people like to use it. Simple really.

  21. Re:Windows Users by Richard_at_work · · Score: 3, Insightful

    Not at all. Windows comes on one architecture, so binaries are perfectly acceptable as the default install medium. THere are compatable compilers that you can source if you want. Linux/BSD/Unix needs the default install medium to be sourcecode precisely because of the number of architectures that they run on. Elementary when you think about it, windows simply doesnt need sourcecode by default, yet its available if you really want it.

  22. Re:Does it really matter? by Richard_at_work · · Score: 3, Insightful

    Because its trivially easy to code for a apache/php/mysql combination on a Windows system, while the production server is running on linux/BSD. Usually it helps to have a quick and dirty test environment available, and thats where apache, php and mysql on windows comes in. Install it and you have a vastly similar environment to the production box, without going outside the development machine. Ofcourse you then test the code on a live-test server to ensure the cross platform hasnt introduced any obscure bugs, but it rarely does.

  23. Re:Does it really matter? by ymgve · · Score: 3, Insightful

    Cost. Legality.

  24. Re:Kinda kludgey by elbobo · · Score: 3, Insightful

    If there was some way that you could allow the user to have multiple PHP versions all being used as Apache modules where the user could select the one they want using their .htaccess file, that would be a possible solution.

    To my knowledge this is easily doable, and often done. Although I've never properly looked into it (I keep as far away as possible from virtual hosted environments where this would make sense), I believe the idea would be to compile apache modules for each different version of php you wanted to support, LoadModule each one in in your httpd.conf, then bind each one to a specific file extension (.php3, .php4, etc).

  25. PHP 5 Documentation update by aint · · Score: 4, Informative

    PHP 5 isn't really documented in the PHP 5 manual yet as there are still a few features on the move, and new features to come, but here's a list of PHP 5 related articles and presentations:

    Faq: Where can I get more information about PHP5?

    Enjoy!

  26. Re:Kiss and say goodbye to Java language!! by Anthony+Boyd · · Score: 4, Interesting
    PHP is 4 times faster than Java technology 'JSP' (Java server pages).
    Substantiate that statement.

    Hey HeadDown. You're right to take the guy to task, s/he made some crazy comments. But I can at least partially substantiate speed issues. Back in 2000, I worked with Sabeer Bhatia (the Hotmail guy) on a startup called Arzoo. Our product (a Web site similar to epinions) was almost 100% Java, except for a bit of Perl for screen-scraping and searches. But anyway, it was slow -- first with Tomcat, then with JRun. At one point, we gave a private preview to 1,000 journalists. They didn't even visit the site all at once, they trickled in over the course of 3 days or so. Just that was enough to hammer the site. We ended up running cron jobs that would reboot the farm, round-robin, just to solve memory issues and instability.

    Now, you can say, well, that was 2000! Try it now! OK. At SST, we have a team that is using Tomcat now. Although the instability is gone, the speed is still an issue -- they have wait screens as you click through the app. My team is working with PHP, and has no wait screens, and no need for them (with 1 exception). Our pages are actually more computationally stressful than the Java stuff, yet PHP is delivering the result to the browser faster.

    As a final point, you might suggest that the teams I've worked with do not understand Java or how to run it well. It's no skin off my back if you make that argument -- it's not me doing this stuff, so no blow to my ego. But I think working with 2 different teams over the course of 3 years says something. Perhaps, at the very least, if Java really can handle a bigger load, it is so difficult to tune that mere mortals would do better with PHP.

  27. PHP fragmentation, lack of cohesion by theolein · · Score: 4, Insightful

    I've been using PHP since the 3.0 days and always loved it's speed in development for small dynamic sites. There is truly nothing simpler (IMO) for small sites. Why on earth did PHP ever become so popular as compared to Perl/CGI? It was the simplicity.

    Most people accepted the changes from PHP3 to PHP4 without complaining as PHP4 brought simple session support and other needed features. Thousands of developers wrote scripts for small pages and uses, and those scripts got placed on help sites etc all across the web.

    The changes above 4.06 where register_globals got turned off by default and -from a simple beginners point of view- to 4.2 where a stunning array of new arrays were added for sessions, post and get variables. Those things broke almost everybodies scripts, and all those thousands of scripts across the web no longer worked as is. Due to this a lot of ISP's no longer upgraded regularly.

    At the same time PHP started jumping on the "web application" gravy train, something for which PHP with it's awkward OO support (no automatic calling of parent constructors etc), lack of stateful session support etc was not designed to do. The makers of Zend decided to go the whole hog and redo OO support, add hundreds of seldom used features but ignore problems with backward compatibility and language simplicity.

    Congratulations. Now we have a language that is slowly matching JSP in complexity (as all the 1337 "application developers are saying"), is nowhere nearly as well integrated in in true web applications as JSP is (great, it can support Java classes, how many will simply use Java then?) and is leaving the roots of it's enormous success behind.

    Take a lesson from Perl's "failure" in web site popularity. Don't keep on adding features for the love of it.

  28. Re: Just use PEAR/DB by PizzaFace · · Score: 4, Informative

    Instead of ODBC, you'd be better off using the pear/db module as middleware. It supports more databases (mysql, odbc, sqlite, pgsql, etc.) and if it isn't the future standard for database access in PHP, something like it will be.

    I've been using PHP's built-in (until now) MySQL functions, because they're faster than pear/db, but this licensing dust-up has convinced me that portability among database vendors is worth a performance hit. And the pear/db module is getting increasing attention and is likely to get faster.