Qbasicnews.com

Full Version: PHP/cookie question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know that you can't generate new headers after you've released info to the browser, but can you write a script to do some tests, some If-Then statements to test for certain cookies, and *then* output a cookie/header?
yes, if you turn on buffering on the server.
Well, I could do that, but then there is the other problem of the 8B4F byte of the third register...
How?
look it up in the phpconfig
Cookies are stored in $HTTP_COOKIE_VARS[]. You could do some sorta check on that, and if there's the cookie you want output some headers...
Got it.
[EDIT]
Actually, if you set a cookie earlier:
Code:
setcookie("cookiename","valueHere",$ExpiryDate)
Then later you could access the cookies using $cookiename.
Right?[/code]
yes, unless you have a really old version of PHP i think heh.