Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Chat file location?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #32583
    Jane
    Member

    Hi all,

    I have read this article here: https://css-tricks.com/jquery-php-chat/

    And one question: where do we put the chat file being used by users’ chat? Also in the www folder?

    Thanks,

    Jane

    #47654
    ChrisBull
    Member

    same as the JavaScript file

    #47590
    Jane
    Member

    But the chat file can be written by others.
    Is it safe to put it in www?

    #47409
    ChrisBull
    Member

    Written by others? They can’t download it but they can view it if they know the url

    #47412
    Jane
    Member

    @ChrisBull so when someone sends a new message and it will be written into the chat log, but the files on server are set can’t be written by others. Do we change the permission temporarily when it’s being written and then change it back?

    #47358
    ChrisBull
    Member

    I really don’t understand what your asking…
    The chat application will take what the user types, open the text file on the server and append the text to it.
    All the user has access to is the input box they type into. They can’t directly get hold of the .txt file and change it. They can, if they know its location on your server open it in the browser and read it, but again they can’t edit it.

    #47312
    Jane
    Member

    OK thanks. Apparently I was kinda confused.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Back End’ is closed to new topics and replies.