Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Chat Box

  1. #1
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    I am looking to build a chat box into a sight that has a registration system. I found a few tutorials about ajax forms but most rely on mysql. I would like to do this from a flatfile.txt instead. Is there a way to keep a dynamic connection to a flatfile open, or stream the data. The closest i can find has a set refresh rate but that is still not realtime.

    while($get_it !== true){ continue; }

  2.  

  3. #2
    Junior Member Azmisov's Avatar
    Join Date
    Feb 2010
    Location
    Iceland
    Posts
    6
    Member #
    21257
    You can use php's file system stuff to access files and edit them. Usually, editing files on your server is pretty unsafe. Especially if there's some way for users to post information/code. I presume it would be relatively easy for hackers to infiltrate the file you're accessing. At least that's what I've been told. So I stay away from file access unless I'm building a local application.

  4. #3
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    hmmm. well if you know of a way to build a chat box without accessing a server i am very interested. most chats are built on sql and that is quite a security risk but still prevalent, curious. oh yes and sql requires accessing files on the sever, sql isnt a scripting language so it still requires use of a sever side file. looking forward to your reply.

    while($get_it !== true){ continue; }

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    I just installed CometChat www.cometchat.com on a site... awesome script for $49! Just like Facebook's chat! And it integrates directly with many forums / CMSes. Try it out!

  6. #5
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    smoseley i took a look but i dont have a cms to build it into. when i get time i will start working on php sockets. from what i understand this is capable of transmitting data without a page reload. any info on this would be very helpful.

    while($get_it !== true){ continue; }

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Dorky,

    It also works standalone - we integrated it into a custom backend. All you need is some simple php skills and an existing database and you can easily integrate it into your site.

  8. #7
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    thx smoseley. i actually use flatfiles for everything. and i cant resist the challenge or chance to learn more about php. Im really set on doing this from the ground up.

    while($get_it !== true){ continue; }

  9. #8
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Ok, Dorky, you may want to reference this for a basis:

    http://www.ajaxprojects.com/ajax/tut...php?itemid=335

  10. #9
    Junior Member
    Join Date
    Mar 2010
    Posts
    3
    Member #
    21315
    I have the answer, please visit the following link and look yourself http://xat.com/web_gear/
    Cuban cigars | Cohiba Cigars | Montecristo Cigars

  11. #10
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    thx guys. i do appreciate the suggestions but im looking to do this with php sockets not xml sockets, script and single flatfile not sql.

    while($get_it !== true){ continue; }


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:49 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com