I am working on creating a FORUM.
I got the threads, it displays the information. Writes to it, I can show when it was last updated, how many people replyed, ECT ECT ECT.
I got 2 problems yet, one is stripslashes, which i need to add in.
The other is different.
If the user puts a RETURN into the message,
It cuts the message off there.
How can I before saving the information, take out any returns from within the string.
Cause it messes with the FILE.
I can not use a SQL server, cause the machine is to slow (hey its what the school gave me), so I need to use text files to save the information.
Each LINE is a message, and stores the message, author, timestamp, and subject of that message.
And each file is a thread.
There is also one master file that SAVES ALL Thread starters.
Anyways, if someone used a return or new line while wrighting a message, it makes a return in the file, and throws everything off.
How can I cut these returns out, or prevent it from doing this?