Best way to convert PHP block to improve site I've just taken control over a Drupal site which the old admin used php blocks. I normally work on Joomla sites but from research and advice from others PHP blocks don't help the site in the long run.

What's the best way forward when some of the PHP blocks are set to some pages in a set area.

For example PHP block 1 is only on the Home Page's Sidebar where PHP block 2 is on Page About Us and Contact Us' Sidebar.

Just some background, This is the first Drupal site I've worked on and know only bits and pieces about Drupal apart from the general how it works and some extra details. If I've missed some research or reading which could aid in this issue which you can direct me too, this again would be great help.
Just make them a custom module!

The best start I can think of would be taking block_example.module from the Examples for Developers project as a start. Rename it, of course, and then just define your blocks in it, the way example blocks are defined. For blocks' content - move code from where it is now to appropriate functions.

That's pretty much all, if you will have more specific question during development, ask it, too.

Understanding the hook system for Drupal modules might be a useful read, too.