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 > prefer to use cookies for convenience, however, I would entertain any > viable solution.
You may want to send this request to the Utah PHP Users Group (http://www.uphpu.org). 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." [http://us3.php.net/manual/en/function.fopen.php] Could you provide more of the code above that line? /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
