Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.