el_roachmeister@yahoo.com wrote:[color=blue]
> why spend $180 / year if you don't have to to? Start simple and build
> in the complexity when you have to. Sometimes you'lll be surprised how
> far the simple and cheap solutions will take you. You're just wasting
> your time and money if you start with a complex solution to a very
> simple problem. these are just my words of advice. i am no expert, but
> as an engineer I can't stand to see someone build the 1$ bridge for
> $10.
>
> for your problem of updating a list of concerts all you need is a
> simple script that reads the concert list file and displays it on the
> webpage. If the edit flag is turned on like
>
> myscript.php?user_wants=edit
>
> then you just display the concert list inside of a textarea field like
> this perl code below:
>
> open(F, $file_path) or die "could not open '$file_path' $!";
> flock(F, 2); # lock file
>
> print"<form action=/myscript.php method=POST>
>
> <textarea name=message cols=75 rows=20>";
>
> if ($password eq $pass & defined $user_wants){ print <F>;}
>
> print"</textarea>";
>
> Then some code like this to finish it off:
>
> close(F);
>
> echo '<CENTER><P><b> Enter Password:</b> <input type="password"
> name="password">
>
> <input type="radio" name="user_wants" value="display" checked>
> Display/ Edit Page
> <input type="radio" name="user_wants" value="edit"> Save Changes';
>
> print"<input type=hidden name=file_path value=$in_file_path>";
> print"<input type=hidden name=referer value=$referer>";
> print"<input type=hidden name=passwords_list
> value=$in_passwords_list>";
>
> print'<p> <input type="submit" value="Submit/ Update"> <p> ';
>
> Spend the $180 per year when the above is no longer a solution as your
> files are several MB large AND you have customers ready with these
> large files.[/color]
Thank you for this superhelpful reply. I totally agree with keeping it
simple is usually the best way.
Thanks again
Nicolaas