888888.888888.88""Yb..dP"Yb..8888b..Yb..dP.88b.88....db....8b....d8.88..dP""b8..dP"Y8
88__...88__...88__dP.dP...Yb..8I..Yb.YbdP..88Yb88...dPYb...88b..d88.88.dP...`".`Ybo."
88""...88""...88"Yb..Yb...dP..8I..dY..8P...88.Y88..dP__Yb..88YbdP88.88.Yb......o.`Y8b
88.....888888.88..Yb..YbodP..8888Y"..dP....88..Y8.dP""""Yb.88.YY.88.88..YboodP.8bodP'


88b.88.888888.888888.Yb........dP.dP"Yb..88""Yb.88..dP
88Yb88.88__.....88....Yb..db..dP.dP...Yb.88__dP.88odP.
88.Y88.88"".....88.....YbdPYbdP..Yb...dP.88"Yb..88"Yb.
88..Y8.888888...88......YP..YP....YbodP..88..Yb.88..Yb

November 17, 2007

PHP 5 has been around for a long time now but it still isn’t getting the takeup that you would expect from the newest version of one of the most popular languages around. There has been some debate about WordPress and PHP 5 over the past 6 months, and I couldn’t go as far as some of them and suggest ignoring PHP 4, but that’s not to say the advantages in PHP 5 should be ignored either.

PHP 5 offers some advantages over PHP4: Better database support, better xml support, better object support not to mention that PHP 6 is not massively distant and will not be as backward compatible as version 5 so any step in the right direction must be a good thing, right? The changes will need to happen eventually.

Because of this, and the fact that I quite like PHP 5, I would quite like to see a PHP 5 only version to run along side the current version.

The benefit of this approach is that, as it is already PHP 5 compatible, nothing needs to change just yet. Just be separate.

I think there would be benefits in freeing up developers who want to work in PHP5 to offer additional (core or otherwise) functionality for that version only. They would be free then to optimise for 5, rather than just being compatible with 5, and to produce plugins that worked on that version alone.

Part of me likes to think that if these developers hit on a seriously good piece of funcationality that this would help drive migration to PHP5 as self-hosters looked for hosts with the appropriate installations but that might well be wishful thinking on my part.

What do you think? do you care? is it too much effor for too little gain? is it a good idea? let me know.

Updating Code Snippets Here
Fun plugin wordpress?
no comment
page 1338
Fun With Minimalism
Sidebartabs plugin?
no comment
page 248
Write One Plugin Without Repetition Deviation Or Hesitation
Saveadminoptions wordpress?
2 comments
page 27
Updating Code Snippets Here
Wordpress fun themes?
no comment
page 1338
Html 5 Gallery
Html5 photo gallery?
6 comments
page 1305
Using Your Own Url Shortener
Htaccess shorten url?
4 comments
page 1190
Wordpress Chat
Wordpress chat?
3 comments
page 1308
Charcoal Theme Available For Wordpress
Simple charcoal wordpress themes?
2 comments
page 959
New Tabbed Widget Plugin
Tabbedwidget on wp 29?
no comment
page 333
Post Image The Easy Peasy Way
Wordpress image link anchor tag?
26 comments
page 1065
Html 5 Gallery
Html 5 photo gallery?
6 comments
page 1305
Html 5 Gallery
Html 5 photo gallery?
6 comments
page 1305
Fun With Sidebar Tabs Styling
Image under sidebar css wordpress?
2 comments
page 336
Wordpress Chat
Wordpress chat themes?
3 comments
page 1308
Using Your Own Url Shortener
Url shortener?
4 comments
page 1190
Html 5 Gallery
Html 5 photo gallery?
6 comments
page 1305
Wpunlimited The Ultimate Wordpress Theme
Wordpress html customisation?
3 comments
page 1141
Dont Mess With My Toot Toot
Wordpress create new post type?
16 comments
page 599
Quick N Dirty Bookmark Navigation
Dirty bookmarking links?
no comment
page 127
My Experience Of Flexx
Flexx theme review?
4 comments
page 1026
Categories Vs Tags Either Neither Or Both
Both either neither image?
12 comments
page 7
3 Ways To Speed Up Your Blog Without A Cache Plugin
Comment on speed up your blog?
one comment
page 1321
Wordpress 25 Exif Fields
Wordpress exif plugin?
12 comments
page 230
Premium Ithemes Review Photo Gallery
Ithemes reviews?
4 comments
page 226
Adding Settings To Admin Pages
Wordpress addsettingsfield?
3 comments
page 793
Updating Code Snippets Here
Fun wordpress plugins?
no comment
page 1338
How To Add Sidebars To A Theme
How to register two sidebars in wp?
10 comments
page 1053
Html 5 Gallery
Html5 image gallery?
6 comments
page 1305
Post Image The Easy Peasy Way
Wordpress theimage?
26 comments
page 1065
Using Your Own Url Shortener
Short url?
4 comments
page 1190
Using Wordpress As A Php Framework
Php framework wordpress?
2 comments
page 335
Wordpress Vs Graffiti
Html5 cms?
8 comments
page 95
Post Image The Easy Peasy Way
Wordpress medium size image link?
26 comments
page 1065
  1 query every 1669 seconds, updated 1 seconds ago.
Thursday, 6pm
 __
(__)
   `

 Andrew Rickmann

But of course now there is an answer – Habari.

Thursday, 3pm
 __
(__)
   `

 Stephen

All my new developments are php5… OOP in php5, xml, mysqli, pattern based architecture etc are much better.

…but so much is still php4 (and the damn & for objects by reference).

Making something php5.2 compatable is not the same as being written for php5 . Not even close.

Better to start from scratch & call it something different!

S

Wednesday, 6am
 __
(__)
   `

 Compare Free Web Hosting

anybody here know of a good site to find more info on compare free web hosting? I\’ve got this site bookmarked and im gonna keep checking it out, but i still would like to find a site that covers compare free web hosting a little more thoroughly..thanks

Thursday, 1pm
 __
(__)
   `

 PHP 5 Only Plugins: Good, Bad, Evil?

[...] little while back I asked whether WordPress should produce an explicitly PHP 5 only version. Reaction was mixed, but ultimately I think Matt has some good reasons for not doing so. This has [...]

Thursday, 11am
 __
(__)
   `

 Why Foliopress WSYIWYG will be PHP5 Only

[...] PHP5 Only Version? [...]

Saturday, 4pm
 __
(__)
   `

 Andrew Rickmann

I share your desire Damian but I am perhaps not so optomistic. I guess we will have to wait and see.

Saturday, 4pm
 __
(__)
   `

 Damian Manifold

As a plug-in developer for WordPress I’ve been itching to use some of the class stuff that PHP 5 provides. Up till now I haven’t looked to deeply into what else is available since i could not use.
Whilst navigating PHP.net noticed a post from last may saying announcing the end of support of php 4 at the end of the year.
After checking wish my host, they are upgrading my PHP at the end of the year too.
With the end of support I’d be interested to find out how many people will still be left on PHP 4. I would hope none.

Monday, 6pm
 __
(__)
   `

 Andrew Rickmann

Amit, I agree that it would not be a good plan to abandon PHP4 right now.

I guess all I am really suggesting is that there may be benefits in making moves in that direction.

Monday, 3pm
 __
(__)
   `

 Amit Bhawani

Well being a web hosting company i would suggest wordpress not to upgrade to php 5 right now :p, you understand the reason right :p
May be after a year this can happen because right now php4 is ok for everyone i guess.

Sunday, 10am
 __
(__)
   `

 Andrew Rickmann

Di, it certainly might slow down development, but on the other hand it might encourage development that wouldn’t have happened otherwise. The former is probably more likely though.

In all honesty if my host hadn’t already switched to PHP 5 I think I would feel as you do, that it is not worth the effort.

What sways it for me though is that I really like PHP as a language, but it is missing things when you compare it to the big hitters like C#, and Java. PHP 5 is much closer, PHP 6 even more so, and I really want to use these features.

Sunday, 1am
 __
(__)
   `

 Di Turner

Maintaining two versions of WordPress would surely slow down development of new features.

I don’t think making it PHP5 only would compel me to upgrade as fundamentally I’m lazy and it would be too much of a hassle to move my site and email to new hosting.