Professional Web Applications Themes

PHPmychat problem - MySQL

Hi, I've customised a PHPmyChat instalation According to the instructions but i get an error message : $Is_Error = (isset($Error)); The url is: [url]http://depressionlink.co.uk/chat/phpMyChat.php3[/url] 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 ...

  1. #1

    Default PHPmychat problem

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

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

    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(($Cht == "windows-1256") ? "RTL" : "LTR"); ?>">



    <HEAD>
    <meta http-equiv="Content-Type" content="text/html; cht=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:paulpaulwatt.info">paulpaulwatt.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 Guest

  2. #2

    Default Re: PHPmychat problem

    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:
    > [url]http://depressionlink.co.uk/chat/phpMyChat.php3[/url]
    >
    > 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(($Cht == "windows-1256") ? "RTL" : "LTR"); ?>">
    >
    >
    >
    > <HEAD>
    > <meta http-equiv="Content-Type" content="text/html; cht=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:paulpaulwatt.info">paulpaulwatt.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
    ([url]http://groups./group/phpmychat/)?[/url]

    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.
    [email]jstucklexattglobal.net[/email]
    ==================
    Jerry Stuckle Guest

  3. #3

    Default Re: PHPmychat problem

    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 Guest

  4. #4

    Default Re: PHPmychat problem

    And lo, Beauregard T. Shagnasty didst speak in
    alt.html,alt.[url]www.webmaster,comp.databases.mysql:[/url]
    > 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.
    - [url]http://www.greywyvern.com/orca#sear[/url] - Orca Search: Full-featured spider
    and site-search engine
    GreyWyvern Guest

  5. #5

    Default Re: PHPmychat problem

    GreyWyvern wrote:
    > And lo, Beauregard T. Shagnasty didst speak in
    > alt.html,alt.[url]www.webmaster,comp.databases.mysql:[/url]
    >
    >> 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
    [url]http://www.LittleWorksStudio.com[/url]
    Jonathan N. Little Guest

  6. #6

    Default Re: PHPmychat problem

    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 Guest

  7. #7

    Default Re: PHPmychat problem

    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.
    [email]jstucklexattglobal.net[/email]
    ==================
    Jerry Stuckle Guest

  8. #8

    Default Re: PHPmychat problem

    On Fri, 18 Nov 2005 11:58:06 -0500, Jerry Stuckle
    <jstucklexattglobal.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
    [url]http://www.probertencyclopaedia.com[/url]
    Matt Probert Guest

  9. #9

    Default Re: PHPmychat problem

    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 Guest

  10. #10

    Default Re: PHPmychat problem

    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 ~ [url]http://tobyinkster.co.uk/contact[/url]

    Toby Inkster Guest

  11. #11

    Default Re: PHPmychat problem

    Toby Inkster <usenet200511tobyinkster.co.uk> 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 Guest

  12. #12

    Default Re: PHPmychat problem

    Writing in news:alt.html,alt.[url]www.webmaster,comp.databases.mysql[/url]
    From the safety of the Your Company cafeteria
    Travis Newbury <travisenwburyhotmail.com> said:

    F/Ups limited to protect the innocent.
    > Toby Inkster <usenet200511tobyinkster.co.uk> 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 Guest

  13. #13

    Default Re: PHPmychat problem

    Travis Newbury wrote:
    > Toby Inkster <usenet200511tobyinkster.co.uk> 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 Guest

  14. #14

    Default Re: PHPmychat problem

    On Sat, 19 Nov 2005 14:40:53 GMT, "Beauregard T. Shagnasty"
    <a.nony.mousexample.invalid> wrote:
    > Travis Newbury wrote:
    >
    > > Toby Inkster <usenet200511tobyinkster.co.uk> 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
    [url]http://www.probertencyclopaedia.com[/url]
    Matt Probert Guest

Similar Threads

  1. contribute problem - access denied file may not existpermission problem
    By Al1973 in forum Macromedia Contribute Connection Administrtion
    Replies: 6
    Last Post: September 17th, 04:16 PM
  2. Replies: 2
    Last Post: September 30th, 12:13 PM
  3. Replies: 0
    Last Post: August 23rd, 11:56 AM
  4. Replies: 0
    Last Post: August 2nd, 03:03 PM
  5. Replies: 2
    Last Post: July 17th, 07:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139