arthemiogod Posted July 13, 2007 Share Posted July 13, 2007 hi, i have an index page with an <? include_once('header.inc.php'); ?>, yet, it doesn't show on IE 6 pc. - oh! the "header" file works fine on FF pc/mac. in safari, the links in the the nav all link to the index page- this behavior only happens in safari though. thx. Arthemio ??? Quote Link to comment https://forums.phpfreaks.com/topic/59841-php-file-header-dont-show-up-on-ie6-any-thoughts-on-that/ Share on other sites More sharing options...
metrostars Posted July 13, 2007 Share Posted July 13, 2007 I thought PHP was independent on browsers, maybe theres a problem with that code inside that that is causing it not to display. Quote Link to comment https://forums.phpfreaks.com/topic/59841-php-file-header-dont-show-up-on-ie6-any-thoughts-on-that/#findComment-297528 Share on other sites More sharing options...
RyanSF07 Posted July 13, 2007 Share Posted July 13, 2007 try adding this after <? header("Cache-control: private"); //IE 6 Fix Quote Link to comment https://forums.phpfreaks.com/topic/59841-php-file-header-dont-show-up-on-ie6-any-thoughts-on-that/#findComment-297530 Share on other sites More sharing options...
arthemiogod Posted July 13, 2007 Author Share Posted July 13, 2007 Ryan, i am not sure where exactly you suggest me to add this <? header("Cache-control: private"); //IE 6 Fix . after <? include_once('header.inc.php'); ?> (here per se) or where? thx. Arthemio Quote Link to comment https://forums.phpfreaks.com/topic/59841-php-file-header-dont-show-up-on-ie6-any-thoughts-on-that/#findComment-297533 Share on other sites More sharing options...
RyanSF07 Posted July 13, 2007 Share Posted July 13, 2007 Hi Arthemio, I don't know if this will work, but in the tutorials I've been using, it's included at that top of the page, just after the first <?php tag. like this: <?php session_start(); header("Cache-control: private"); //IE 6 Fix include_once ("config.php"); // database connection hope that helps Quote Link to comment https://forums.phpfreaks.com/topic/59841-php-file-header-dont-show-up-on-ie6-any-thoughts-on-that/#findComment-297535 Share on other sites More sharing options...
arthemiogod Posted July 13, 2007 Author Share Posted July 13, 2007 I got it. funny thing it worked when i first put it in and stop working after i refreshed. why is that? Arthemio Quote Link to comment https://forums.phpfreaks.com/topic/59841-php-file-header-dont-show-up-on-ie6-any-thoughts-on-that/#findComment-297550 Share on other sites More sharing options...
arthemiogod Posted July 13, 2007 Author Share Posted July 13, 2007 ok. the header is showin, however, on top of it is a warnin message. Warning: Cannot modify header information - headers already sent by (output started at /home/.castor/realestatearts/realestatearts.com/clients/prud/current/index.php: in /home/.castor/realestatearts/realestatearts.com/clients/prud/current/index.php on line 8 i get this message no matter where i put the "IE fix", in the index page or on the actual page that is to be enbeded. if only this warnin could disappear. please let me know if you have any thoughts. thx. Arthemio :-\ Quote Link to comment https://forums.phpfreaks.com/topic/59841-php-file-header-dont-show-up-on-ie6-any-thoughts-on-that/#findComment-297581 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.