PHPmychat problem

P

Paul Watt

Hi,
I've customised a PHPmyChat instalation According to the instructions but i
get an error message : $Is_Error = (isset($Error));

The url is:
http://depressionlink.co.uk/chat/phpMyChat.php3

and heres the code:

<?php

// 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");

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<HTML dir="<?php echo(($Charset == "windows-1256") ? "RTL" : "LTR"); ?>">



<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Depression link - Forum</title>
<link href="../depression.css" rel="stylesheet" type="text/css">

<?php

// You can put html head statements right after the "<HEAD>" tag.



// Both values are boolean. See explanations in 'index.lib.php3' file.

send_headers(1,1);

?>

</HEAD>



<BODY>


<table cellspacing="5" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td colspan="2">
<img class="topleft" height="102" alt="Depression Link"
src="../img/logo.jpg" width="274" /><img src="../img/topright.jpg" alt=""
width="187" height="102" class="topright" /></td>
</tr>
<tr>
<td class="navarea" width="151" valign="top">
<ul id="mainnav">
<li>
<a href="index.htm">home</a>
</li>
<li>
<a href="forum.htm">Forum</a>
</li>
<li>
<a href="chat.htm">Chat room</a>
</li>
<li>
<a href="#">Your contributions</a>
</li>
</ul>
<img height="200" alt="" src="img\spacer.gif" width="1"
/>
</td>
<td class="mainarea" valign="top" width="100%">
$Is_Error = (isset($Error));

<?php

// 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 '<BODY CLASS="ChatBody">'

// You can put html statements right after the "<BODY>" tag or add

// php code here.

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 "</BODY>"
tag.

?>
</td>
</tr>
<tr>
<td class="footer" colspan="2">
<span class="copy">&copy;Paul Watt Designs (07766)
335848</span> <a
href="mailto:p[email protected]">[email protected]</a></td>
</tr>
</tbody>
</table>


$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 "</BODY>"
tag.

?>

</BODY>



</HTML>

<?php

// The following line is required

$DbLink->close();

?>

Please help, I know nothing about PHP!

Cheers

Paul
 
J

Jerry Stuckle

Paul said:
Hi,
I've customised a PHPmyChat instalation According to the instructions but i
get an error message : $Is_Error = (isset($Error));

The url is:
http://depressionlink.co.uk/chat/phpMyChat.php3

and heres the code:

<?php

// 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");

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<HTML dir="<?php echo(($Charset == "windows-1256") ? "RTL" : "LTR"); ?>">



<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Depression link - Forum</title>
<link href="../depression.css" rel="stylesheet" type="text/css">

<?php

// You can put html head statements right after the "<HEAD>" tag.



// Both values are boolean. See explanations in 'index.lib.php3' file.

send_headers(1,1);

?>

</HEAD>



<BODY>


<table cellspacing="5" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td colspan="2">
<img class="topleft" height="102" alt="Depression Link"
src="../img/logo.jpg" width="274" /><img src="../img/topright.jpg" alt=""
width="187" height="102" class="topright" /></td>
</tr>
<tr>
<td class="navarea" width="151" valign="top">
<ul id="mainnav">
<li>
<a href="index.htm">home</a>
</li>
<li>
<a href="forum.htm">Forum</a>
</li>
<li>
<a href="chat.htm">Chat room</a>
</li>
<li>
<a href="#">Your contributions</a>
</li>
</ul>
<img height="200" alt="" src="img\spacer.gif" width="1"
/>
</td>
<td class="mainarea" valign="top" width="100%">
$Is_Error = (isset($Error));

<?php

// 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 '<BODY CLASS="ChatBody">'

// You can put html statements right after the "<BODY>" tag or add

// php code here.

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 "</BODY>"
tag.

?>
</td>
</tr>
<tr>
<td class="footer" colspan="2">
<span class="copy">&copy;Paul Watt Designs (07766)
335848</span> <a
href="mailto:p[email protected]">[email protected]</a></td>
</tr>
</tbody>
</table>


$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 "</BODY>"
tag.

?>

</BODY>



</HTML>

<?php

// The following line is required

$DbLink->close();

?>

Please help, I know nothing about PHP!

Cheers

Paul


Paul,

Did you try asking on the phpmychat group
(http://groups.yahoo.com/group/phpmychat/)?

When asking about a particular product, it's always better to check
their support first.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
(e-mail address removed)
==================
 
B

Beauregard T. Shagnasty

GreyWyvern said:
Oh come now, no need to exaggerate. There were scant more than 100
lines of code in the post. Surely that's nothing to get excited
about.

"I've told you a million times: don't exaggerate!" :)

40tude told me there were 204 lines in the original post, and .. well ..
most of it was code, and Jerry quoted it all. <g>
 
J

Jerry Stuckle

Beauregard said:
Jerry Stuckle wrote:




Please consider snipping the 200 lines of code next time. Thanks.

You're right, I should have snipped the lines. All I can say is I
goofed and I'm sorry.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
(e-mail address removed)
==================
 
M

Matt Probert

You're right, I should have snipped the lines. All I can say is I
goofed and I'm sorry.

Not good enough.

We shall expect tea and chocolate hobnobs to be delivered, forthwith,
to all participants. <g>

Matt
 
B

Beauregard T. Shagnasty

Matt said:
We shall expect tea and chocolate hobnobs to be delivered, forthwith,
to all participants. <g>

Being a Murrican, I'll take coffee with my hobnobs, please. Hot, bitter,
and black.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top