Setting cookies after reading from a file
kenneth at mail1.ttak.org
Wed Jul 26 21:22:01 MDT 2006
Stephen Smith wrote:
> I am working on a website where I need to write data to a request file,
> the latter on read data from a response file, then based on the content
> set variables that can be sent to other pages on the site. I would
> viable solution.
You may want to send this request to the Utah PHP Users Group
The message is saying that to set a cookie, it has to be done in the
headers, before any regular output is sent to the browser. According to
the PHP manual about fopen, the only time it should send "regular"
output is in the following...
"If no wrappers for that protocol are registered, PHP will emit a notice
to help you track potential problems in your script and then continue as
though filename specifies a regular file."
Could you provide more of the code above that line?
More information about the PLUG