Forum Moderators: coopster
I'm trying to implement this template system for my site:
[codewalkers.com...]
I keep getting header error conflicts so let me do my best to explain what is happening.
First of all I have one function that ultimately will return all of the page content that would need to be put out. It is assigned to one variable, nothing is output during the execution of that function EXCEPT cookies are set.
This is where it becomes a pain.....
From the file where I call this function that returns the output to a variable a few things need to happen.
#1 I need to send a few header() commands and I also need to call the function that will parse my output.
I get header errors because the script content that would execute the setcookie() functions is not called until the parser outputs some data.
Sorry if this sounds confusing but is there a way to make this all play happily or do I need a custom template system?
Thanks guys
There's no php way to set a cookie after sth is sent to user. The only remaining way is to set the cookie via JavaScript.
Search the hotscripts [hotscripts.com] for js cookies.
Best regards
Michal CIbor