Simply upgrading PHP to a later version will not resolve all your problems, also there are considerations to take into account when migrating from PHP 4 to 5 for example.
What I would ask is,
1. What is your web thingie
2. What is it suppossed to do, that it is not doing now
3. What OS are you...