First off, if it's simple enough, I'd recommend re-writing entirely the script. If you can't, go on php's website and get the changelog to view what is different, and edit the script.
It's not really necessary to re-write everything. You only really need to change things that require functions that are depreciated in PHP 5 or where there is a newer technique or driver e.g. Database access.