You are here: Re: PHP Script not working correctly in some browsers « PHP Programming Language « IT news, forums, messages
Re: PHP Script not working correctly in some browsers

Posted by Markus Ernst on 02/16/06 12:12

Amanda H. schrieb:
[...]
> ---end of PHP script. Then the link header for the HTML file is:
>
> <link rel="stylesheet" type="text/css"
> href="http://www.amandahenson.com/styleswitcher.php" />
>
> ---end of link. It works in most browsers, but has the problems as
> stated in the originl post.
>

I guess it is a cache problem. Your style switching logic is in the
script that is called as the external stylesheet. So as the href
attribute of the link tag remains the same, IE assumes that it calls the
same stylesheet again and does not check it, but uses the cached version.

Try to change the href attribute on any request, for example like that:

<link rel="stylesheet" type="text/css"
href="http://www.amandahenson.com/styleswitcher.php?<?php echo time();
?>" />

HTH
Markus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация