I want the content on a page of my website to appear on two different pages. At the moment i have copied and pasted the content into the code of the files but this means that if i want to edit the content then i have to do it twice, it also means that i am taking up twice as much space. I tried to put the content into a PHP variable then just echo the variable on the second page but that doesnt work. Is there a way to have a cross file variable so i only have to put the content on one page then just put a variable on the other?


P.S: please bear in mind I am relatively new to PHP so when writing answers keep this is mind