Jump to content

Advice on PHP Layout


bford21

Recommended Posts

So I have a site with about 100 pages and its getting to the point where making edits to every single page is annoying. I know I could edit the existing pages to use PHP includes to make editing down the road easier, however I don't expect the site to grow to more than 150 pages and was wondering if it will be worth it.

 

If I were to edit my site to use PHP includes I would have to go through every page and edit it correctly. I would have to change every file extension of every page to .php, thus making me have to edit all links on all pages. Thats a hell of a lot of work.

 

Thanks in advance for the advice.

 

P.S If you have an alternative solution then I'm all ears.

Link to comment
https://forums.phpfreaks.com/topic/228862-advice-on-php-layout/
Share on other sites

I would have to change every file extension of every page to .php

 

Apparently you missed the point of programming. You can write a script that does this for you, as write the PHP include in the correct place, replacing whatever was there first.

 

glob

DOMDocument

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.