Update Dynamic Pages like Walking on Glass

Never change php code on a live page or underlying PHP classes called before writing a test class/test page first. You can crash hundreds or thousands of pages at once with one false move and if spiders happen to be deep crawling your site, boom, you’ve created a mess you might not be able to recover from, ever.

Here’s an example. Say you want to change livepage.html. Don’t touch it. Create livepage1.html and make changes to that page. Test it out to make sure it does what you want. Then save the page as livepage.html. Pretty basic stuff, but something you should never forget to do.

Other PHP Good Practices

- Make pages as PHP independent as possible. Try to use cached elements instead of doing live PHP calls.
- Write clean PHP classes. Create sensible class extensions.

Related Posts

What's Your Take?