Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 01:17 am EDT
Geeklog Forums
PhpMyChat doesn't work, please help!
Status: offline
tampano
Forum User
Chatty
Registered: 04/06/04
Posts: 59
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
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
10
10
Quote
Status: offline
Kybla
Forum User
Newbie
Registered: 05/15/02
Posts: 9
I'm not sure if it helps, but it may be because all phpMyChat files have *.php3 extension. Some servers doesn't recognise this extension as php script and show the file content instead of executing the script. The solution is to rename all files to *.php (and change all internal links in phpMyChat scripts to point to the new names).
10
11
Quote
All times are EDT. The time is now 01:17 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content