Hello,

I am trying to utilize a share hosting. WHM. And now is there anyway to update many websites with the same template into a new version automatically?

For example if I am having 20 users using the same templates and I want to upgrade all the templates into a new version. Is there anyway to do it ?

Thanks in advance.

Member Avatar for diafol

...to update many websites with the same template into a new version automatically

What does that mean? You have 20 users that have a separate website each on your shared server account? You set them up with the same template file that they cannot edit? I'm assuming that you are providing subdomains?

You can have a central repository of template files in your main domain that all subdomains require/include:

www.example.com/templates/(tmp files)

wood.example.com (same as www.example.com/wood)

So in your subdomain, you can do this:

require "../templates/(tmp file of choice)";

Then you can change the template file to your heart's content - content, get it? heh.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.