I am suffering a serious problem: after a long time I decided I am not able to solve this horrible problem and shall look for help somewhere. Here is what I want to ask.
Lets say I am running a webiste: xyx.com ( apache , php , mysql ) All page same .php no html.
No I have folder structure like this / : root , /abc : another folder in root: both root and /abc has php page which include header and footer. Header and footer contains some url like home , services , about us etc.
So I had to copy same header and footer with its images folder in both root and /abc so that It works. Now I have problem whenever I have to change something I have to change in both place. Problem is not really two folders If I have to make more folder then I will be doomed to make small change I have to change every place. Now If I make one common header and footer and use include() , then I am facing problem Since header includes css , javascript and from the /abc folder path will be different lets say even if I manage this by php using if condition still it will not work cuz css has itself so many images as style. Now I can't change css since it will be a problem, I don't want two version of css which will somehoe affect loading time. I am already putting heavy load on website which gives me average load time of 6 seconds which is too slow. I hope i was able to convey you guys whoever read this post. If not then please post query I will reply you.
Thanks a trillion :)
Now my problem is I want to have one common header and footer
I have one header and one foot