I have my own CGI archive website with a few free scripts people can download. I was just thinking how much nicer it would be for the users if I wrote a script to install each of them.
My question is, how do most of them work? I've only come across a few scripts that install themselves.
My first idea was having an install.cgi just print a basic web form asking for all the required information (passwords, absolute paths to files, etc). (they upload the original script themself). Then once they submit, the form verifies that every location they included works and the script itself is in the right place. Then the install script opens the original script and sets the configurations.
My other idea was to have the installer WRITE the entire script. Maybe this route would be easier as I wouldn't have to be careful with regexes to ensure everything is being written properly. This to me sounds like the best bet but some of my scripts actually have 6 or more separate CGI files with them. It seems the first idea would be better for this amount of scripts in one package.
Any ideas or suggestions?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.