|
|
|
|
![]() ![]() |
Jul 3 2007, 06:50 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 255 Joined: 21-January 07 Member No.: 37,585 |
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
QUOTE Warning: Cannot modify header information - headers already sent by (output started at /***/***/***l/***/setstyle.php:4) in /***/***/***/***/setstyle.php on line 181 QUOTE Line 4 QUOTE <meta name="keywords" content="neo-evolution,neoevolution Line 181QUOTE '/', 'http://www.neoevolution.net/', '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 here Also if anyone knows any good php style switcher tutorials please free to post them. This post has been edited by street: Jul 3 2007, 06:52 AM |
|
|
|
Jul 3 2007, 08:08 PM
Post
#2
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,893 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
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.
|
|
|
|
Jul 5 2007, 06:44 PM
Post
#3
|
|
|
Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,020 Joined: 25-September 05 From: L.A. Member No.: 12,251 |
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.
|
|
|
|
Jul 12 2007, 01:41 PM
Post
#4
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 12-July 07 Member No.: 46,366 |
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.
|
|
|
|
Jul 16 2007, 04:36 PM
Post
#5
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 12 Joined: 16-July 07 Member No.: 46,575 |
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.
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | ||||||
|---|---|---|---|---|---|---|---|
|
| ||||||
|
Lo-Fi Version | Time is now: 6th September 2008 - 05:04 PM |