- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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
same as the JavaScript file
But the chat file can be written by others.
Is it safe to put it in www?
Written by others? They can’t download it but they can view it if they know the url
@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?
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.
OK thanks. Apparently I was kinda confused.