when a user submit an HTML code in the chat
example : <h1><a href="mysite">Go here</a></h1>
how can i make it appears as text knowing that i can't edit them since its a big sql database
i just want a code to add before and after example
<nohtml>
<h1><a href="mysite">Go here</a></h1>
</nohtml>
...how to make it secured ? I chmod a file to 777
as i need my php script to edit it from time to time
is this file protected and only writable by my php script or it can be edited by unauthorized persons
and how to make it secured but still editable by my php script ?