4000 HTML static pages to PHP

Yes, the title is NOT a farse. I manage and update 4000 static pages of HTML everyday.
Yes, I let the gremlin grow uncontrollably into a monster and now it’s time to tame it.
I’ve been reading around the net about the wondorous world of includes! I want in!

Is there anyone out there who has tackled a similar project?
I’m wondering about a project plan? How should I start and proceed?
Simply looking for a simple step by step procedure.

ie.

  1. work on single product categories at a time
  2. create includes, add include scripts into menus
  • are embedded includes possible?
  1. while you are in there, add script to ensure “active” state of page’s menu item
    4… blah blah blah
  • any other PHP goodies I can add to make my editing days easier?

Appreciate your time… and yes you can laugh.

hmm that is a lot of pages :stuck_out_tongue:
I was thinking about just ending my post at that, I think it would have been funnier :smiley: but I won’t, as a php programmer if someone hired me to do that I would write an file_get_contents() script to cycle through all the files and insert the html files in a database. Then I would create one single index.php file that would select from pages where page = $_GET[‘page’] then echo the contents. of course strip_tags and real escape $_GET[‘page’] before using in the query. writing the script would take way longer than it would to get all the information into the database. but you could do it all in a day and have the new site up and running right away.

Sponsor our Newsletter | Privacy Policy | Terms of Service