Skip to content
Welcome guest. | Register | Login | Add
About | Wiki | Legacy

What's up with PHP 5?

No replies
memenode's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2004-07-12

While i am not a programmer (yet), i'd be interested in knowing what are the improvements in PHP 5 that may be of concern to the users. What may change after installing it on our servers. Is it easier, is it much different or not? Share your experience and knowledge about it with us.

Thank you.

__________________

Daniel Memenode signature

User offline. Last seen 9 years 2 weeks ago. Offline
Joined: 2004-07-18
Re:What's up with PHP 5?

Hmm...

My host still refuses to upgrade to php5. In fact, I don't see much php5 hosting around, I wonder why?

memenode's picture
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 2004-07-12
Re:What's up with PHP 5?

And i am happy they don't upgrade...

I mean, my host actually attempted it which caused a several hours of downtime for libervis.com because XOOPS couldn't work properly with it.
They were forced to go back to PHP 4.3.8. because they obviously had too much complaints and issues from other PHP scripts users.

It seems that the world just isn't ready for it, i mean, the majority of scripts and web apps aren't ready.

Thanks
Daniel

__________________

Daniel Memenode signature

User offline. Last seen 9 years 2 weeks ago. Offline
Joined: 2004-07-18
Re:What's up with PHP 5?

I am not sure, but if you want me to fish out all my php codes and go through them to make sure that they are compatible, I'll switch hosts :-D

User offline. Last seen 9 years 41 weeks ago. Offline
Joined: 2004-12-07
Re:What's up with PHP 5?

PHP5 adds better OO support, at least that is what most of the hype is about. You know it's a shame that a language can change so much from one version to the next that it breaks stuff when you try to upgrade. I know there are issues in other languages that have gone through similar iterations but my pet language perl has never caused me any grief in being able to run old code, and even when something does come up it has always been trivial for me to correct.

I have only one big beef with PHP. It's FOSS but I have to pay money to get an optimizer to get the best performance out of it from Zend. That just seems dumb. I know there are other optimizers out there but Zend supports the majority of the PHP development yet wants to charge me to get the best performance from this language. Sorry, I think I'll stick with Perl under mod_perl to get my CGI/WebDev language fix.

User offline. Last seen 9 years 50 weeks ago. Offline
Joined: 2004-12-07
Re:What's up with PHP 5?

PHP5 seems to break a lot of scripts out there. In my opinion it has more to do with the scripts than with the language itself.

Scripting languages like PHP are easy to learn, and easy to use. That is just why so many people use it. The downside is that that a lot of work is ad hoc, without any design what so ever and generally of poor quality.

People tend to build something small to start with, and then endlessly extend their code until they have the biggest ball of spaghetti code you can imagine. With that kind of code, an update of the language is a nightmare.

I don't have anything against PHP, mind you. With a bit of effort you can write well designed applications with it, and I have used it on quite a couple occations. Its just that sometimes I wonder what people have been thinking when they use it (or any other simple scripting language) for huge projects when there are quite some better alternatives.

The new OO support will make it a bit better choice for more complicated applications. It makes it just a bit nicer for developers that actually design their programs.

I think PHP5 is an excellent excuse to throw away crappy code, and redesign & reprogram it properly. People should actually do that more often instead of endlesssssly tinkering with existing crappy code... but that is a different topic. (don't get me started).

- Thorwin

User offline. Last seen 9 years 2 weeks ago. Offline
Joined: 2004-07-18
Re:What's up with PHP 5?
Quote:

thorwin wrote:
PHP5 seems to break a lot of scripts out there. In my opinion it has more to do with the scripts than with the language itself.

Scripting languages like PHP are easy to learn, and easy to use. That is just why so many people use it. The downside is that that a lot of work is ad hoc, without any design what so ever and generally of poor quality.

People tend to build something small to start with, and then endlessly extend their code until they have the biggest ball of spaghetti code you can imagine. With that kind of code, an update of the language is a nightmare.

I don't have anything against PHP, mind you. With a bit of effort you can write well designed applications with it, and I have used it on quite a couple occations. Its just that sometimes I wonder what people have been thinking when they use it (or any other simple scripting language) for huge projects when there are quite some better alternatives.

The new OO support will make it a bit better choice for more complicated applications. It makes it just a bit nicer for developers that actually design their programs.

I think PHP5 is an excellent excuse to throw away crappy code, and redesign & reprogram it properly. People should actually do that more often instead of endlesssssly tinkering with existing crappy code... but that is a different topic. (don't get me started).

- Thorwin

I agree with you on that, but some people code part time and don't have the expertise to do that :shake:

I am getting bogged down with the stinking codes I wrote when I was a newbie (now I am a semi-newbie). Oh well...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.