Hi all
I try to integrate PhpFreeChat version 0.9.3 in a website and I have some problem with the include function.
Here is my HTML code with some PHP :
require_once "src/phpfreechat.class.php"; // pensez à ajuster le chemin
$params=array();
$params["serverid"] = $_POST['id']; // permet d'identifier ce chat
$params["nick"] = $_POST['nick']." (".$_POST['metier'].")";
$params["title"] = $_POST['nomforum'];
$params["showsmileys"] = false;
$params["width"] = "800";
$chat = new phpFreeChat($params);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?echo($_POST['nomforum']);?></title>
<?
echo("<pre>");
var_dump($params);
echo("</pre>");
$chat->printJavascript();
$chat->printStyle();
?>
</head>
<body><?
$chat->printChat();?>
</body>
</html><?
Here are the errors returned by PHP :
PHP Warning: include(eb/pp.tropheeruinart.com/ftp/home/fr/chatajax/themes/default/templates/pfcclient-custo.js.tpl.php) [function.include]: failed to open stream: No such file or directory in D:webpp.tropheeruinart.comftphomefrchatajaxthemesdefaulttemplatespfcclient.js.tpl.php on line 959 PHP Warning: include() [function.include]: Failed opening 'eb/pp.tropheeruinart.com/ftp/home/fr/chatajax/themes/default/templates/pfcclient-custo.js.tpl.php' for inclusion (include_path='.;C:php5pear') in D:webpp.tropheeruinart.comftphomefrchatajaxthemesdefaulttemplatespfcclient.js.tpl.php on line 959 PHP Warning: include(eb/pp.tropheeruinart.com/ftp/home/fr/chatajax/themes/default/templates/chat.js.tpl.php) [function.include]: failed to open stream: No such file or directory in D:webpp.tropheeruinart.comftphomefrchatajaxthemesdefaulttemplateschat.html.tpl.php on line 83 PHP Warning: include() [function.include]: Failed opening 'eb/pp.tropheeruinart.com/ftp/home/fr/chatajax/themes/default/templates/chat.js.tpl.php' for inclusion (include_path='.;C:php5pear') in D:webpp.tropheeruinart.comftphomefrchatajaxthemesdefaulttemplateschat.html.tpl.php on line 83
I'm using IIS server on a Windows Server !
I think there is a problem with the relativePath function because we can see that the relative path isn't well calculated !
What can I do ?
Thanks in advance !
Thibault