View previous topic :: View next topic |
Author |
Message |
Aurisor Guru
Joined: 20 Sep 2003 Posts: 361 Location: Boston MA
|
Posted: Mon May 16, 2005 7:07 am Post subject: what's the lowdown on php5 |
|
|
Now that I'm digging into PHP4, I'm finding some of its oop woefully inadequate. What's the consensus on using PHP5 for a production server? Is it considered stable and secure enough for real-world, intensive use yet? If not, when will it be? |
|
Back to top |
|
|
keli Apprentice
Joined: 18 Jul 2003 Posts: 210 Location: TgMures, RO
|
Posted: Mon May 16, 2005 5:45 pm Post subject: |
|
|
PHP 5 is "not recomended" simply as it's not as wide-spread and heavily tested as PHP4 is. But it is "production stable", although I guess most developers stick to PHP4 by the lines of "if it ain't broken, don't fix it"
If I consider, that php developers are still not reccomending Apache2, I say all this is just a bit of paranoia. Especially, if you're doing your own development, and you (more or less) know your tools, I don't see any serious reason, why to avoid PHP5, if you need it's features. _________________ "The future masters of technology will have to be lighthearted and intelligent. The machine easily masters the grim and the dumb."
Marshall McLuhan, 1969 |
|
Back to top |
|
|
chrisMc n00b
Joined: 25 Mar 2003 Posts: 7 Location: St Louis, MO
|
Posted: Tue May 17, 2005 5:38 pm Post subject: |
|
|
From what I've read, the main reason PHP5 is not widely used is that it currently only works with the prefork server model in Apache2. You cannot use it with the threaded models. That being said, I use PHP5 on all of my servers. I use the XML-RPC/SOAP features that are not natively available in PHP4 (there are hack-ish include files that offer a lot, but aren't nearly as good). PHP5 is the only way to go for web services. You may run in to a few PHP apps that don't run correctly on PHP5, but the problems are usually well-known and easy to fix unless you're running CVS branches of the apps. It seems that all of the major apps/libraries are now up to speed for PHP5. |
|
Back to top |
|
|
faugusztin n00b
Joined: 15 May 2005 Posts: 47
|
Posted: Tue May 17, 2005 8:33 pm Post subject: |
|
|
Quote: | From what I've read, the main reason PHP5 is not widely used is that it currently only works with the prefork server model in Apache2. You cannot use it with the threaded models. |
Not 100% correct. PHP itself is thread safe and can be used in threaded Apache 2. But PHP is not just PHP - it uses external libraries, and some of these libraries are not thread safe. This is the reason for not using Apache2. But for new projects i recommend PHP5, because PHP4 is at end of it's era - PHP4 is getting only bugfixes now. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|