Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:
It has features like comments, file uploads and a search engine as well as posting and editing and HTML shortcuts in QuickEdit format.
I couldn't have done it without the Monks. I'm not worthy.
Anyway, a friend of mine asked if she could have the script, and it was at that moment I realised that it was still full of hacks and had no interface.
For instance, there's a create button but no delete button for posts. I delete so rarely I just log in and delete it with FTP.
But more importantly, if I was going to let other people who aren't just more perl hackers use it, I'd need to do a couple of things:
So, I throw myself on the mercy of the Monks.
What's the best way to store the prefs for an online application? I'm guessing you guys would use a tied hash of some sort?
What things do I have to worry about when it comes to security?
All my script does, in terms of security, is write posts into a certain folder which is world-writable, then read them back again. There's one script for display and another for create/edit, which is in a password-protected directory.
And how does one go about setting up an install for something like this to make it as easy as possible? The very easiest thing would be for them to install and set permissions on one script, which would then figure out things like the path and create the necessary folders and so on.
I'd be grateful for any help. I'm really just asking the questions because, I'll happily admit, I've never tried to do CGI programs professionally at all, just hacked them together and made them work.
--
($_='jjjuuusssttt annootthhrer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Moving A Web Application From Hacky To ... Less Hacky
by BrentDax (Hermit) on Mar 01, 2002 at 10:27 UTC | |
|
Re: Moving A Web Application From Hacky To ... Less Hacky
by theguvnor (Chaplain) on Mar 01, 2002 at 02:22 UTC | |
by Cody Pendant (Prior) on Mar 01, 2002 at 03:39 UTC | |
|
Re: Moving A Web Application From Hacky To ... Less Hacky
by beebware (Pilgrim) on Mar 01, 2002 at 14:46 UTC |