 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Developer Tutorials Blog: Migrating legacy PHP 4 applications to PHP 5
by Chris Cornutt July 10, 2008 @ 07:56:41
In a new post to the Developer Tutorials blog Akash Mehta takes a look at migrating PHP4 applications up to the more recent versions of PHP5.
PHP 5 supports most of the legacy syntax features of PHP 4. Most code written for PHP 4 should function fine under PHP 5, and a comprehensive test suite could check this. However, many of the backwards-incompatible changes in PHP 5 were in regard to language quirks, and quite a few hacks rely on these in order to function.
He points out some of these hacks including changes to the object model and updates to the way variables are handled (breaking many "bad use" cases). He also points out the changes made in the latest Windows binaries as well as some of the new reserved keywords that could conflict with pre-existing code in your application.
voice your opinion now!
migrate application php4 php5 legacy upgrade gotcha
Matthew Weier O'Phinney's Blog: Migrating OOP Libraries and Frameworks to PHP 5.3
by Chris Cornutt July 02, 2008 @ 10:24:02
Matthew Weier O'Phinney recently posted about a method he's come up with for migrating your object-oriented libraries (including frameworks) over to the upcoming PHP 5.3 version of the language.
With PHP 5.3 coming up on the horizon, I'm of course looking forward to using namespaces.
He gives an example of how useful these namespaces can be for you and your code, but points out one failing point - trying to define classes in a namespace that are named the same as a built-in keyword for PHP. There's already been a suggestion to add a captial "I" in front of the class name to prevent this collision.
There's also the problem of throwing custom exceptions - unless you use the namespace properly your script will just throw a default exception.
voice your opinion now!
php5 namespace migrate library framework collision keyword exception
Matthew Turland's Blog: Goodbye WordPress, Hello Habari
by Chris Cornutt June 23, 2008 @ 09:36:17
Matthew Turland has said goodbye to Wordpress and hello to Habari - a "next-generation free software blogging platform". He also includes one of the more helpful tips for those thinking on doing the same:
So after eventually getting fed up with WordPress, especially after the WYSIWYG editor disappeared in the 2.3.3 update, I finally decided to bite the bullet and migrate my blog over to Habari. Once I'd been through the process, I thought I'd write a short blog entry about the experience.
The two tips he mentions are about exporting the old content (made simple from the WordPress admin interface) and making Habari support his WordPress URL scheme (so as not to loose links to any content out there). He found this to help on that front.
voice your opinion now!
habari wordpress change wysiwyg migrate blog software
Markus Wolff's Blog: Migrating to PDT
by Chris Cornutt October 02, 2007 @ 09:32:00
Markus Wolff has been moving from his current editor (Zend Studio) over to a newly released (stable) version of an Eclipse-based IDE for PHP - Zend/Eclipse's PDT package. In his migration, he's found out a few things, good and bad, that he wanted to share.
It took a little while for me to get acquainted with the little oddities of the Eclipse platform. One can clearly see that it was originally tailored to fit Java development, and although PHP integration is now pretty good, things sometimes still feel a bit bloated and overly complicated. Having said that, I'm using PDT full-time for all my PHP development now and have kissed the old Zend Studio goodbye. Eclipse brings too many goodies to the table to ignore.
Among the "growing pains" he mentions are things like:
- Piss-poor network performance
- Frequent slowdowns and out of memory exceptions
- If you can, use NFS instead of Samba
- Adjust Java heap space
- Turn off unneccessary validators
Check out his post for more details on each.
voice your opinion now!
migrate pdt zend eclipse ide zendstudio migrate pdt zend eclipse ide zendstudio
O'Reilly: Migrating Web-Based PHP Applications to Ajax
by Chris Cornutt May 10, 2007 @ 10:54:04
In a new tutorial on O'Reilly's ONLamp.com website today, Bill Lubanovic shows an example of moving a normal web-based PHP application over to a more Ajax-enabled environment.
In the web environment, we've typically needed hacks like populating hidden fields in a form, and regenerating the whole page, even for a tiny change. Can we make the process more rational?
This article describes a makeover of a typical database-backed web form. We'll show some old code '" a mixture of HTML, JavaScript, and PHP '" and rebuild it with modern web techniques like Ajax, and modern tools like jQuery.
In their example, they show how to take a simple form element, a select box of names, and modify it to work with an Ajax connection. Instead of having to submit the information back to to the PHP script with a form submit button, they can make a request when the user changes the select option to get that person's information. They've included all of the relevant code and some great explanation to help you recreate the example and move on to work up your own.
voice your opinion now!
migrate application ajax webbased tutorial jquery migrate application ajax webbased tutorial jquery
PHPEverywhere: Moving Legacy PHP4 apps to PHP 5.1
by Chris Cornutt December 07, 2005 @ 07:50:20
In his latest post, John Lim looks at some of the issues that he (and his group of developers) are having in the port from legacy PHP4 applications up to PHP 5.1.
Today, started to test moving some of our PHP4 apps to PHP5.1.1. Some of this code was written for PHP 4.0.6, over 3 years ago. The migration so far has been relatively painless. Here are some of the problems we encountered.
Included in his list are things like:
- issues with code generators (created in PHP4) and pass by reference problems
- the classic register_globals issues
- the lack of an open source opcode cache for Windows
- and more...
voice your opinion now!
php migrate php4 php5 problems php migrate php4 php5 problems
|
Community Events
Don't see your event here? Let us know!
|