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. Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/228862-advice-on-php-layout/#findComment-1179923 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.