bford21 Posted February 26, 2011 Share Posted February 26, 2011 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 More sharing options...
trq Posted February 26, 2011 Share Posted February 26, 2011 What is your question? If I had to maintain a site made up of 150 static pages I would be seriously looking into CMS solutions or rolling my own. Link to comment https://forums.phpfreaks.com/topic/228862-advice-on-php-layout/#findComment-1179835 Share on other sites More sharing options...
ignace Posted February 26, 2011 Share Posted February 26, 2011 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 Link to comment https://forums.phpfreaks.com/topic/228862-advice-on-php-layout/#findComment-1179923 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.