Hello,
My ultimate goal is to be able to utilize common PHP header and footer files between 2 different domains hosted on 2 diffrent servers.
Is this possible or is there something in PHP or Servers in general that prevents this?
I have a few ideas for this. Is there anything that is wrong with these that won't work?
a) Utilize the header() function within PHP. As of writing this, I have not tested this.
b) Utilize a common database and utilize a reference this. However, I believe this would cause me to have to host the same exact CSS and pictures on both servers which in that case I should just utilize option C.
c) Use PHP FTP in order to create a synchronization between the two servers every hour. If something is not found on the one domain, it automatically updates to the next domain. This will host all CSS files, images, etc utilized within the header and footer files on both domains however will cause a synchronization between the two so I only need to update domain which is the ultimate goal.
Is there another way that is easier than what I have thought out?
Thanks,
Wayne