Hello
I currently have the full installation installed at
www/u/phpfreechat-1.2/
I have a file at
www/u/chat.php
where the code for chat.php is
<?php
require_once "phpfreechat-1.2/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5('test'); // used to identify the chat
$chat = new phpFreeChat($params);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>
I have another file at
www/other/chat2.php
where chat2.php has code
<?php
require_once "../u/phpfreechat-1.2/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5('test'); // used to identify the chat
$chat = new phpFreeChat($params);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>
But for some reason, if I go to one page and the try to go to the other page in another browser, one of them will hang at the 'Chat Loading' screen and not load. And then eventually both will hang. I essentially want to have 2 windows in different folders connect to the same chat.
I took a look at the demos, and one of them looked promising, hardcoding the URLs, but none of my combinations seem to work. I'm not sure how the server vs client relationship works. I mean for admins to use the 'other/chat2.php' and customers to use the 'u/chat.php'. Would this mean chat2.php is the server and chat.php is the client? Do I have to load the server page first?
Do I just provide hard url paths to the core installation inside chat2.php and chat.php?
Thanks for your help!