erichar11 Posted January 7, 2007 Share Posted January 7, 2007 Hi all, I'm a noob at php but I have an issue which I don't seem to understand. I have a index2.php file on our site (I'm converting all the html pages over to php). The problem is that the index2.php contains links to css files in the head tag but whenever I make changes to the css file, they are not reflected in the php. I can even delete the links to the css files but the index2.php still loads the old ones. Now I thought maybe my browser was caching the old pages but I deleted the cache and still no joy. Below is a copy of my head section of my index2.php file. Maybe something is wrong in there. With the html pages, making a change to the css file is automatically reflected and works well.<head> <title></title> <meta name="keywords" content=""> <meta name="description" content=""> <link rel="shortcut icon" href="favicon.ico"/> <link href="/css/masthead.css" rel="stylesheet" type="text/css"/> <link href="/css/defaultfive.css" rel="stylesheet" type="text/css"/> <link href="/css/tabs.css" rel="stylesheet" type="text/css"/> </head> Quote Link to comment https://forums.phpfreaks.com/topic/33157-php-caching-old-css-file/ Share on other sites More sharing options...
magic2goodil Posted January 7, 2007 Share Posted January 7, 2007 I was not aware that you could define 3 separate css files to be loaded to a page.Are you sure that is possible?If not is it defaulting to the last css file that you have on there and has always been disregarding the other 2? I may be way off on this because I don't use CSS much, or hadn't until this past year. Quote Link to comment https://forums.phpfreaks.com/topic/33157-php-caching-old-css-file/#findComment-154561 Share on other sites More sharing options...
Jessica Posted January 7, 2007 Share Posted January 7, 2007 Can you post an actual link? I think you are viewing the wrong file or something.Yes, it is possible to load more than one css file, just as it is with an external js file. Quote Link to comment https://forums.phpfreaks.com/topic/33157-php-caching-old-css-file/#findComment-154562 Share on other sites More sharing options...
erichar11 Posted January 7, 2007 Author Share Posted January 7, 2007 thanks guys and gals, I updated some other pages and all of a sudden it started to work. I think I must of had some bad links or something not sure. On another note, wow, I was not expecting such a quick response. Great job. Quote Link to comment https://forums.phpfreaks.com/topic/33157-php-caching-old-css-file/#findComment-154669 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.