I installed phpmychat and everything seemed to be ok on installing. The admin page is also ok, I can create and delete rooms.
The problem is: when I click on the name of a chat room I obtain the "text" version of some php file in the browser window:
--------this is the output i receive-----------
// This is an example of what may be done to include phpMyChat into an
// existing web page, regardless of its name.
// You can also include such a file in a frameset.
// Lines below must be at the top of your file because 'index.lib.php3'
// sets headers and cookies.
$ChatPath = "chat/"; // relative path to chat dir, empty value if this
// file is in the same dir than the chat;
require("./${ChatPath}lib/index.lib.php3");
?>
">
// You can put html head statements right after the "" tag.
// Both values are boolean. See explanations in 'index.lib.php3' file.
send_headers(1,1);
?>
// If nothing other than phpMyChat is loaded in this page, or if you want
// to have the same background color as phpMyChat for the whole page,
// you have to modify the BODY tag to ''
// You can put html statements right after the "" tag or add
// php code here.
$Is_Error = (isset($Error));
if (isset($HTTP_COOKIE_VARS))
{
if (isset($HTTP_COOKIE_VARS["CookieUsername"])) $CookieUsername = $HTTP_COOKIE_VARS["CookieUsername"];
if (isset($HTTP_COOKIE_VARS["CookieRoom"])) $CookieRoom = $HTTP_COOKIE_VARS["CookieRoom"];
if (isset($HTTP_COOKIE_VARS["CookieRoomType"])) $CookieRoomType = $HTTP_COOKIE_VARS["CookieRoomType"];
};
$Username = (isset($CookieUsername) ? $CookieUsername : "");
$Room_name = (isset($CookieRoom) ? $CookieRoom : "");
$Room_type = (isset($CookieRoomType) ? $CookieRoomType : "");
layout($Is_Error,$Username,$Room_name,$Room_type);
// You can add php code here, or add html statements before the "" tag.
?>
// The following line is required
$DbLink->close();
?>
----this is the end of the output i receive---------
--
Tampano
admin of
http://www.tampano.com