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.
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.