This is a discussion on PHPmychat problem within the MySQL Database forums, part of the Database Forums category; Hi, I've customised a PHPmyChat instalation According to the instructions but i get an error message : $Is_Error = (isset($Error)); ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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">©Paul Watt Designs (07766) 335848</span> <a href="mailto:paul@paulwatt.info">paul@paulwatt.inf o</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 Watt wrote:
> 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">©Paul Watt Designs (07766) > 335848</span> <a > href="mailto:paul@paulwatt.info">paul@paulwatt.inf o</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. jstucklex@attglobal.net ================== |
|
|||
|
And lo, Beauregard T. Shagnasty didst speak in
alt.html,alt.www.webmaster,comp.databases.mysql: > Jerry Stuckle wrote: > >> Did you try asking on the phpmychat group > > Please consider snipping the 200 lines of code next time. Thanks. 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. ;) Grey -- The technical axiom that nothing is impossible sinisterly implies the pitfall corollary that nothing is ridiculous. - http://www.greywyvern.com/orca#sear - Orca Search: Full-featured spider and site-search engine |
|
|||
|
GreyWyvern wrote:
> And lo, Beauregard T. Shagnasty didst speak in > alt.html,alt.www.webmaster,comp.databases.mysql: > >> Jerry Stuckle wrote: >> >>> Did you try asking on the phpmychat group >> >> >> Please consider snipping the 200 lines of code next time. Thanks. > > > 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. 187 ;-) -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com |
|
|||
|
GreyWyvern wrote:
> 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> -- -bts -Warning: I brake for lawn deer |
|
|||
|
Beauregard T. Shagnasty wrote:
> Jerry Stuckle wrote: > > >>Did you try asking on the phpmychat group > > > 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. jstucklex@attglobal.net ================== |
|
|||
|
On Fri, 18 Nov 2005 11:58:06 -0500, Jerry Stuckle
<jstucklex@attglobal.net> wrote: > Beauregard T. Shagnasty wrote: > > Jerry Stuckle wrote: > > > > > >>Did you try asking on the phpmychat group > > > > > > 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. > Not good enough. We shall expect tea and chocolate hobnobs to be delivered, forthwith, to all participants. <g> Matt -- The Probert Encyclopaedia - Beyond Britannica http://www.probertencyclopaedia.com |
|
|||
|
Matt Probert wrote:
> 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. -- -bts -Warning: I brake for lawn deer |
|
|||
|
Beauregard T. Shagnasty wrote:
> Being a Murrican, I'll take coffee with my hobnobs, please. Hot, bitter, > and black. Why would you want hot, bitter, black hobnobs? -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact |
![]() |
| Thread Tools | |
| Display Modes | |
|
|