I'm integrating the chat into an existing website, and I have a weird issue.
WAMP server, php 5.3.4, Apache 2.2.17, windows server 2003. the chat works great, in the demo and standalone scripts ive tested it with. However, when integrating it via an include file, I'm having a problem setting the nick parameter.
This doesn't work, it just sits at the loading div:
$unamearry = explode(" ",$_SESSION["displayname"]);
$firstname = $unamearry[0];
$params["nick"] = iconv("ISO-8859-1", "UTF-8", $firstname);
However, if i call session_start() again, even though it has already been started and errors out, everything works great. So, if i disable the error showing, it all technically works:
ini_set("display_errors",'off');
session_start();
ini_set("display_errors",'on');
$unamearry = explode(" ",$_SESSION["displayname"]);
$firstname = $unamearry[0];
$params["nick"] = iconv("ISO-8859-1", "UTF-8", $firstname);
The question is Why?