Yuck!
Sorry, had to get that out of the way first. :P Here is what i would do: use a database! All you need to store is a unique identifier for the user and the contents of the page itself. Then, your CGI script accepts the user id as a parameter, fetches the page for that uid, and then displays it in a text area that uses HTMLArea to turn the text area box into a ... yes it really works ... WYSIWYG HTML editor. Now your client doesn't even have to know how to "code" HTML. :)
I suppose you could achieve the same effects by opening the index file, reading the contents into the text area and re-writing the index file upon submit ... and if you really only need to do this for one user then the only two hard parts you have will be:
Oh, and by the way, your system usage looks wrong. Try passing a list instead:
But remember that if you don't have the proper permissions set for the index file, you can't write to it. And please, please do consider using HTMLArea instead of search and replace substitution. Your client will love you for it. :)system ( 'perl', '-pi.bak', '-e', 's/Old Spotlight/Product Spotlight/', '/var/www/html/acs/new/index.html', );
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to 3Re: Converting FILEHANDLE to string
by jeffa
in thread Converting FILEHANDLE to string
by joev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |