Re: Stupid question of the day (Editing text file in $HOME via web)

From: Date: Tue, 31 Oct 2006 16:20:47 +0000
Subject: Re: Stupid question of the day (Editing text file in $HOME via web)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-243952@lists.php.net to get a copy of this message
On Oct 30, 2006, at 11:34 PM, Google Kreme wrote:
So, do I whack up something where I just load the file into a HTML Textarea and then write it back (simple enough, though possibly rather dangerous), or is there something straightforward I should go ahead and use that might find use elsewhere on the server?
Playing Devils Advocate here, but why not store the text in a database? The text file should be somewhat secure if you're manually reading and writing to it in PHP, making sure that you're the one controlling the file name, the file extension (file type), the file permissions, and the file size. -Ed

« previous php.general (#243952) next »