PHPmychat problem

Discussion in 'HTML' started by Paul Watt, Nov 18, 2005.

  1. Paul Watt

    Paul Watt Guest

    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"></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, Nov 18, 2005
    #1
    1. Advertising

  2. 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">&copy;Paul Watt Designs (07766)
    > 335848</span> <a
    > href="mailto:p"></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.

    ==================
     
    Jerry Stuckle, Nov 18, 2005
    #2
    1. Advertising

  3. Jerry Stuckle wrote:

    > Did you try asking on the phpmychat group


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

    --
    -bts
    -Warning: I brake for lawn deer
     
    Beauregard T. Shagnasty, Nov 18, 2005
    #3
  4. Paul Watt

    GreyWyvern Guest

    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, Nov 18, 2005
    #4
  5. 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
     
    Jonathan N. Little, Nov 18, 2005
    #5
  6. 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, Nov 18, 2005
    #6
  7. 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.

    ==================
     
    Jerry Stuckle, Nov 18, 2005
    #7
  8. Paul Watt

    Matt Probert Guest

    On Fri, 18 Nov 2005 11:58:06 -0500, Jerry Stuckle
    <> 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, Nov 18, 2005
    #8
  9. 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, Nov 18, 2005
    #9
  10. Paul Watt

    Toby Inkster Guest

    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
     
    Toby Inkster, Nov 19, 2005
    #10
  11. Toby Inkster <> said:
    >> Being a Murrican, I'll take coffee with my hobnobs, please.
    >> Hot, bitter, and black.

    > Why would you want hot, bitter, black hobnobs?


    He's playing the hobnob race card...

    --
    -=tn=-
     
    Travis Newbury, Nov 19, 2005
    #11
  12. Writing in news:alt.html,alt.www.webmaster,comp.databases.mysql
    From the safety of the Your Company cafeteria
    Travis Newbury <> said:

    F/Ups limited to protect the innocent.

    > Toby Inkster <> said:
    >>> Being a Murrican, I'll take coffee with my hobnobs, please.
    >>> Hot, bitter, and black.

    >> Why would you want hot, bitter, black hobnobs?

    >
    > He's playing the hobnob race card...


    I say, I say, I say ...

    How do you start a milk pudding race?

    Sa(y )go

    sorry /fetches coat

    --
    William Tasso

    virtue is its own punishment
     
    William Tasso, Nov 19, 2005
    #12
  13. Travis Newbury wrote:

    > Toby Inkster <> said:
    >>> Being a Murrican, I'll take coffee with my hobnobs, please.
    >>> Hot, bitter, and black.

    >> Why would you want hot, bitter, black hobnobs?

    >
    > He's playing the hobnob race card...


    No! I didn't say anything about my women! <oops>

    The coffee, damnit! The coffee!

    --
    -bts
    -Warning: I brake for lawn deer
     
    Beauregard T. Shagnasty, Nov 19, 2005
    #13
  14. Paul Watt

    Matt Probert Guest

    On Sat, 19 Nov 2005 14:40:53 GMT, "Beauregard T. Shagnasty"
    <> wrote:

    > Travis Newbury wrote:
    >
    > > Toby Inkster <> said:
    > >>> Being a Murrican, I'll take coffee with my hobnobs, please.
    > >>> Hot, bitter, and black.
    > >> Why would you want hot, bitter, black hobnobs?

    > >
    > > He's playing the hobnob race card...

    >
    > No! I didn't say anything about my women! <oops>


    I resisted that one....You can understand why I'm sure! <bg>

    >
    > The coffee, damnit! The coffee!


    Tea! damnit! TEA!

    Matt


    --
    The Probert Encyclopaedia - Beyond Britannica
    http://www.probertencyclopaedia.com
     
    Matt Probert, Nov 19, 2005
    #14
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    3,985
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,159
    Ted Miller
    Sep 13, 2003
  3. Merek
    Replies:
    0
    Views:
    1,967
    Merek
    Dec 3, 2003
  4. Scott Meddows
    Replies:
    1
    Views:
    395
    John Saunders
    Jun 8, 2004
  5. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    551
    Bullschmidt
    May 11, 2004
Loading...

Share This Page