+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 16

Thread: Simple Chatroom with PHP & jQuery

  1. #1
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    19
    Posts
    2,044
    Blog Entries
    13

    Simple Chatroom with PHP & jQuery

    Last edited by Jaan; 06-08-2010 at 09:13 AM.

  2. #2
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,751
    Blog Entries
    97

    Re: Simple Chatroom with PHP & jQuery

    The end result sure does look a lot more complicated than you make it appear above. Nice tutorial and nice work! +rep

  3. #3
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    19
    Posts
    2,044
    Blog Entries
    13

    Re: Simple Chatroom with PHP & jQuery

    Hehe yes I know it looks complicated but it's really very simple..
    and thank you

  4. #4
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    37
    Posts
    12,912
    Blog Entries
    57

    Re: Simple Chatroom with PHP & jQuery

    Very cool
    CodeCall Blog | CodeCall Wiki
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  5. #5
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    19
    Posts
    2,044
    Blog Entries
    13

    Re: Simple Chatroom with PHP & jQuery

    Yea.. I'm working on it atm.. I believe it will be my next project.. I just wanted to post it here so you can do something cool also

  6. #6
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,751
    Blog Entries
    97

    Re: Simple Chatroom with PHP & jQuery

    Does it still use to many system resources?

  7. #7
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,843
    Blog Entries
    25

    Re: Simple Chatroom with PHP & jQuery

    Quote Originally Posted by Jordan View Post
    Does it still use to many system resources?
    He is selecting ALL the entries from the chat table, so I'd assume once the table reaches ten thousand+ entries, it would probably be enough to kill the mysql server.

  8. #8
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    19
    Posts
    2,044
    Blog Entries
    13

    Re: Simple Chatroom with PHP & jQuery

    Yes.. that's why i made a deletion script that deletes some of posts..like.. in every 100 posts it deletes 50

  9. #9
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,843
    Blog Entries
    25

    Re: Simple Chatroom with PHP & jQuery

    I *think* if you limit the output in the query, it won't cause such a large load if you have a large data set, this way you will be able to keep chat logs.

    Code:
    $sql "SELECT time,user,text FROM chat ORDER BY time DESC LIMIT 50"

  10. #10
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,751
    Blog Entries
    97

    Re: Simple Chatroom with PHP & jQuery

    lol, how does that help? You just listed every field in the chat table. Select * is effectively the same with less typing.

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sending emails with PHP & jQuery
    By Jaan in forum PHP Tutorials
    Replies: 9
    Last Post: 08-13-2009, 07:24 AM
  2. Creating my own simple CMS with PHP and MySQL HELP!
    By Coldhearth in forum PHP Forum
    Replies: 13
    Last Post: 11-19-2008, 01:18 PM
  3. PHP 5 and OOP
    By Jordan in forum PHP Tutorials
    Replies: 11
    Last Post: 09-21-2008, 10:58 PM
  4. PHP 4 end of life announcement
    By Jordan in forum News
    Replies: 4
    Last Post: 08-30-2007, 06:55 AM