|Syntactic Confectionery Delight|
Re^2: CGI script cannot create file.by Anonymous Monk
|on Dec 20, 2012 at 03:02 UTC||Need Help??|
First off, thank you all for being so helpful.
I'm still unsure about how to go about writing a file from a "setup" CGI script. I've tried everything I can find. I think I just don't understand the concept as deeply as I should.
What I'm trying to accomplish is this:
A Web setup that writes several files, and asks the user if input for these files. This setup only runs if the files it writes do not currently exist. Its suposed to create the following files:
hf (My "password" file which as councled by many of you will be changed to store as a salted hash.)
.Site (this file contains the Site name, the meta tags, and a list of pages belonging to the site)
Home.Page (An initial .Page file so that the index.pl has something to load.)
.Menu (a list of pages that should have a link on the main menu)
The person I'm creating this for is not tech savvy, and wants an extremely easy (Visual) way to update they're website. They are using IPower wich does not allow ssh (At least not for this particular Account) so I do not have the choice of running the scripts as the user. If there is any way to have a perl script login as the user who's home directory it has been copied to, that is what I really need to know.
Again thank you all for providing me with so much good info. I will defiantly be making use of the Hashing security info. And have already implemented the error checking now.