Jul 20, 2008

Php Styleswitcher - I Need some help

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Php Styleswitcher - I Need some help

street
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 181
QUOTE
'/', '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.

 

 

 


Reply

truefusion
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.

Reply

galexcd
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.

Reply

whichacho
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.

Reply

marcio
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : php styleswitcher


    Looking for php, styleswitcher

Searching Video's for php, styleswitcher
advertisement



Php Styleswitcher - I Need some help



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE