street 0 Report post Posted July 3, 2007 (edited) OK i followed this tutorial on how to make a php based style switcher and the code just does not seem to work for me. I keep getting this error Warning: Cannot modify header information - headers already sent by (output started at /***/***/***l/***/setstyle.php:4) in /***/***/***/***/setstyle.php on line 181 Line 4<meta name="keywords" content="neo-evolution,neoevolutionLine 181'/', 'http://forums.xisto.com/no_longer_exists/' '0');If anyone can try out this code and get the styleswitcher to work can you please tell me what i copied wrong cause i typed out the exact code from the site.The tutorial can be found hereAlso if anyone knows any good php style switcher tutorials please free to post them. Edited July 3, 2007 by street (see edit history) Share this post Link to post Share on other sites
truefusion 3 Report post Posted July 3, 2007 In my opinion: Get rid of the header—it's unnecessary; you're gonna be switching styles through links or whatever anyways (according to the tutorial), therefore no need for that header. The rest of the tutorial should take care of everything else. Share this post Link to post Share on other sites
galexcd 0 Report post Posted July 5, 2007 That error means that the page already sent the header to the browser before you used the header function. Even though truefusion is right, you don't need the header, if you want it, you have to put it before you echo anything out to the browser. Share this post Link to post Share on other sites
whichacho 0 Report post Posted July 12, 2007 How proficient are you with php already? I'd say just write your own using a page with a form to select the stylesheet (or specific styles if you want to get picky) and $_SESSION variables. Share this post Link to post Share on other sites
marcio 0 Report post Posted July 16, 2007 just abit of help. In this case your headers are the promblem,get rid of them. Also when a coding/script does work the way it should literly doesnt mean something is wrong with the script/coding, your server might not support it,and so displays errors such as a flash of the same page or displaying a blank page. So always keep that in mind when using new codes/scripts. Share this post Link to post Share on other sites