You are seeing this very light version of the page, as you are using an outdated
browser!
Onlinetools.org is done in XHTML 1.0 and supports CSS 2.0, please upgrade your
browser if you want a better version of this site.
Thank you, please help us developers keep up with the industry rather than patching our code for outdated applications.
Line 1 defines the name of the text file, in line 2-4 the script checks if the file is there and displays a message, when there is no datafile.
If there is a datafile, then the lines 6-8 read it's content into the variable $content.
Lines 10-12 manipulate the content, the backlslashes php adds to quotationsmarks are removed, umlauts and special characters are replaced by their html equivalent and every linebreak becomes a <br />.
Now, we're halfway there, we only need to add the tool that changes the content of the textfile.
Table of contents:
Introduction, what is this about?
Separation is necessary
The template with the script
What the script does
Adding secured interactivity
Goodies and limits