0
Good afternoon! I work in a company that manages several websites (joomla - on different servers). All with the same header and footer.
From time to time, we need to change all the headers and footers of all the sites.
This process, until then, is done manually. Thinking about the agility of this change process, I wondered if it would not be possible to create a server with this material and use some type of include, so I do not need to change one by one whenever necessary.
I did some research here, but I couldn’t find anything conclusive. Someone can give me a light?
And each site has a different server or are all on the same server?
– Woss
They’re on different servers.
– Thiago Maciel
And you intend to include on all sites a file that is on another server?
– Woss
@Thiagomaciel I found this Post that can help you https://answall.com/questions/34240/coloca-camio-do-site-em-include-php or you can use an iframe as well
– romulo henrique
@Andersoncarloswoss I believe so. I would like to know what would be the ideal.
– Thiago Maciel
@romulohenrique My first idea was iframe. Would you have any though? Or ideal solution?
– Thiago Maciel
@Thiagomaciel , from a look at the Linck that I commented, la ele ensina um metodo usando o Curl , gave a read on top I think q would help your problem
– romulo henrique
Guy Joomla is all in PHP even by default he already has some includes and requires... Why not continue with the includes? If you have a Bank for each site there is complicated even, but if it is only a bank will facilitate even more
– hugocsl
The easiest is to keep a file on each server even and include it on the page with
include
; just automate the process of sending the new file to all Ftps, which is something quite simple.– Woss