Log in

View Full Version : Good Old Fasioned Problem Solving



MrRSMan
03-24-2008, 11:42 AM
Ok, this shouldn't be hard as (I don't think) it won't actually require much PHP coding. This is more of a riddle I need an answer to :)

Ok, I have 2 websites, on similar subjects. I have a PHP file on one of them, which I then use PHP include to put this onto a webpage in the SAME website.

What I want now is to use that same PHP file and using PHP include, put it's contents onto the OTHER website as well. That's all very easy, I know- I could do that. However, here's the crunch;

The two websites are of very similar design, but with very different colour schemes. They are both controlled by their own CSS. I need the included PHP file to adhere to these separate CSSs, depending on what website it's on.

codeexploiter
03-24-2008, 11:53 AM
You can use two similar kind of CSS resources but with different style information. So that you don't have to change the class names and IDs in the including file.

MrRSMan
03-24-2008, 12:21 PM
codeexploiter, could you please explain more?