News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

DevShed:
Migrating Class Code for a MIME Email to PHP 5
August 07, 2008 @ 11:16:43

DevShed has finished off their series looking at sending MIME emails with PHP in this new tutorial, moving the current code from the previous parts up to a fully PHP5 state.

While this mailer class can be used with small PHP applications, it lacks some important features related specifically to its object model, since it was built in PHP 4 from the very beginning.

They review the PHP4 version of the script first then move on to the process of porting it to a more standardized PHP5 structure and code.

0 comments voice your opinion now!
mime email tutorial class php4 php5 migrate



Developer Tutorials Blog:
Migrating legacy PHP 4 applications to PHP 5
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.

0 comments 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
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.

0 comments voice your opinion now!
php5 namespace migrate library framework collision keyword exception


Matthew Turland's Blog:
Goodbye WordPress, Hello Habari
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.

0 comments voice your opinion now!
habari wordpress change wysiwyg migrate blog software


Markus Wolff's Blog:
Migrating to PDT
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.

0 comments voice your opinion now!
migrate pdt zend eclipse ide zendstudio migrate pdt zend eclipse ide zendstudio


Felix Geisendorfer's Blog:
Migrating from WordPress to CakePHP
September 24, 2007 @ 15:58:00

Felix Geisendorfer is in the process of moving his blog from Wordpress to a customized "light-weight CakePHP replacement" he's developing to be extended later on. His post shares some of the tips he found so far.

In this post I'm simply going to throw out some snippets to show how I'm currently approaching the whole process in order to give both my insight into what works and what doesn't, while also hoping to get some people to share their insight into migrating legacy apps to CakePHP.

The tip in this post is primarily about the database side of things - his porting over of the information from the Wordpress table model to his new customized schema. His code example for the migration is included.

1 comment voice your opinion now!
migrate wordpress cakephp custom blog software database table migrate wordpress cakephp custom blog software database table


Arnold Daniels' Blog:
Migrating from PHP4 to PHP5 A strategy for hosts
September 05, 2007 @ 09:45:00

One of the biggest problems facing PHP web hosting companies is the big move to PHP5 that that end-of-life announcement. Arnold Daniels has one idea for a solution to help ease the problems - providing customers with a testing environment they can try out their code in.

A few months ago I've posted an article about running multiple Apache instances with different PHP versions. In that article I showed how to make multiple configurations running Apache on different IP addresses. By using different ports instead of different IP addresses, we can give our customers a way to check their site before it goes live.

He modifies the settings in that tutorial with a few updates he includes to make two different apache configurations - one for PHP4 and the other for PHP5. When used together, they can run two different PHP versions on the same code, just on different ports.

0 comments voice your opinion now!
migrate php4 php5 solution testing environment hosting provider migrate php4 php5 solution testing environment hosting provider


O'Reilly:
Migrating Web-Based PHP Applications to Ajax
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.

0 comments voice your opinion now!
migrate application ajax webbased tutorial jquery migrate application ajax webbased tutorial jquery


Sandro Groganz's Blog:
Syntax Highlighting & Migrating Permalinks in WordPress
January 09, 2007 @ 07:39:00

Sandro Groganz has two new WordPress tips for users out there looking to do some syntax highlighting in their posts and that want to move some older permalinks into a WordPress environment.

The first post spotlights a package that makes highlighting in WordPress simple - the iG:Syntax Hiliter v3.5 plugin. He includes some sample code to show how the CSS is formatted which, in itself, is a demo of what the plugin looks like.

The second article follows the steps he went through to make the move to WordPress URLs from the previous format. He leaned toward mod_rewrite, but decided to go a different way and whip up a custom 404 handler to get people where they want to go. He includes the code (all 15 lines of it) to show how he did it.

0 comments voice your opinion now!
wordpress syntax highlight migrate permalinks custom handler wordpress syntax highlight migrate permalinks custom handler


PHPEverywhere:
Moving Legacy PHP4 apps to PHP 5.1
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...
0 comments 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!


PHP5 developer book framework code releases conference job security PEAR zendframework ajax application zend cakephp release example package mysql database

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework