View Single Post
Old 09-10-2008, 20:14   #1
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
HTML & PHP question

Mainly for the coders really....

Can HTML be broken up and made into PHP files, so that they can be called together to make on HTML file??

I am trying to make a microsite within a site, and some content may be duplicated but needs to have their own branding so to speak.

so instead of keeping lots of files updated, I just want to update one file that will update everything that is calling that file...

I have taken a portion of an HTML file and saved it as homepage.php which has the portion of the HTML I want to store.
This then gets called in a separate index.php file via include() but I get an error.

Can someone help, I been trawling the PHP docs and google for hours and can't find waht I am looking for, I may be using the wrong function.

---------------- Now playing: Lovemongers - Battle of Evermore via FoxyTunes

---------- Post added at 19:14 ---------- Previous post was at 18:56 ----------

I don't know why but it now works.......

I aint changed anything, but it works. will test on a few more

---------------- Now playing: Pearl Jam - State of Love and Trust via FoxyTunes
ikthius is offline   Reply With Quote