Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: PHP chat system

  1. #1
    Regular Coder slappyjaw's Avatar
    Join Date
    Mar 2009
    Location
    Wonderland!
    Posts
    146
    Thanks
    14
    Thanked 3 Times in 3 Posts

    PHP chat system

    Hello i was wondering if anyone knew of any tutorials that would show me how to make a chat system like the one on facebook, I would buy one from like comet or one of those companies but i dont have the money to be spending on those. Thanks for any help!

  • #2
    Regular Coder Zangeel's Avatar
    Join Date
    Oct 2007
    Location
    public_html/
    Posts
    638
    Thanks
    17
    Thanked 79 Times in 79 Posts
    I created a clone of that a while back. It's more Javascript, AJAX, than PHP. The php is some simple inserts, and mysql stuff.
    PHP Code:
    $aString is_string((string)array()) ? true false// true :D 
    [/CENTER]

  • #3
    Regular Coder slappyjaw's Avatar
    Join Date
    Mar 2009
    Location
    Wonderland!
    Posts
    146
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Is there anyway that you could maybe send me that? I know php really good but i cant do javascript. or could you help me? Thanks for post.

  • #4
    Regular Coder the-dream's Avatar
    Join Date
    Mar 2007
    Location
    Northamptonshire, UK
    Posts
    477
    Thanks
    8
    Thanked 4 Times in 4 Posts
    How about taking a page from your own book, isn't this your signature:
    Quote Originally Posted by slappyjaw View Post
    GOOGLE IS YOUR BEST FRIEND.

  • #5
    Regular Coder Zangeel's Avatar
    Join Date
    Oct 2007
    Location
    public_html/
    Posts
    638
    Thanks
    17
    Thanked 79 Times in 79 Posts
    It was for a client so I can't give the script away. However I'll tell you this, cosmetically is the toughest part. I'm sure there's free tuts for the cosmetic part anyway, but to get it exact is really tough. There's a lot of things we needed to take into account when creating our clone, like, have to many boxes open for the width of the bar, how to reopen windows on a refresh, how to restore convos. This type of chat system proved to be one of the toughest kind because theres so many factors you need to think about. But it was almost all managed with javascript, the JS file ended up being 30,000kb. Only one relatively small php file.
    PHP Code:
    $aString is_string((string)array()) ? true false// true :D 
    [/CENTER]

  • #6
    Regular Coder funnymoney's Avatar
    Join Date
    Aug 2007
    Posts
    364
    Thanks
    17
    Thanked 24 Times in 24 Posts
    Quote Originally Posted by Zangeel View Post
    But it was almost all managed with javascript, the JS file ended up being 30,000kb. Only one relatively small php file.
    my program is already now 47kb, and i still haven't even started to write chat's n' stuff.. :
    imagine, i have all that code and not even profile page is done

  • #7
    Regular Coder Zangeel's Avatar
    Join Date
    Oct 2007
    Location
    public_html/
    Posts
    638
    Thanks
    17
    Thanked 79 Times in 79 Posts
    Well the one 30k KB file was just used the for chat's cosmetics, and cookie handling. With the obvious ajax functionality. Technically it's a small project for a chat program, but the amount of javascript needed was a LOT.
    PHP Code:
    $aString is_string((string)array()) ? true false// true :D 
    [/CENTER]


  •  

    Posting Permissions

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