Trusten
11-21-2002, 10:15 AM
hello, two things.
1. i'm trying to build a page where people can upload their stories. i understand that this is a lot for the database to handle so someone suggested the files be saved as txt then call the file agian.
it sounded like a good idea. sadly, most people save their files as 'txt' files, but when i tried to retrieve it by way of include, then it simply will not word wrap.
i know about nl2br
so i tried to echo it. Echo only shows the txt file's path, so that will not work.
what command can i use, that will include the file, but use nl2br along with is, so tht the line breaks will show up.
please help.
2. whenever i save the file onto my server, it takes on the permisson of 600, which is a VERY bad thing. how can i force it to stop doing this?
i believe these are the defalt permssions if none are set.
if you can give me a hand, i'd appreciate it.
Thank you.
1. i'm trying to build a page where people can upload their stories. i understand that this is a lot for the database to handle so someone suggested the files be saved as txt then call the file agian.
it sounded like a good idea. sadly, most people save their files as 'txt' files, but when i tried to retrieve it by way of include, then it simply will not word wrap.
i know about nl2br
so i tried to echo it. Echo only shows the txt file's path, so that will not work.
what command can i use, that will include the file, but use nl2br along with is, so tht the line breaks will show up.
please help.
2. whenever i save the file onto my server, it takes on the permisson of 600, which is a VERY bad thing. how can i force it to stop doing this?
i believe these are the defalt permssions if none are set.
if you can give me a hand, i'd appreciate it.
Thank you.