Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
"be consistent"
 
PerlMonks  

Re: CGI, writting permissions

by Daddio (Chaplain)
on Apr 21, 2001 at 23:27 UTC ( [id://74491]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to CGI, writting permissions

Another thing to consider when having CGIs write to files is the physical location of those files.

I believe the safe path (at least in *NIX) is not to write CGIs to system-critical partitions, such as /tmp or /var (and probably some others) which, when full, can bring down a system.

To the Sys Admins out there: please correct me if I am wrong, but I do believe this to be a good practice; at least one I was taught long ago.

Replies are listed 'Best First'.
Re: Re: CGI, writting permissions
by asiufy (Monk) on Apr 22, 2001 at 19:04 UTC
    Daddio's right. I usually make my scripts (CGI or not) write its stuff to /tmp, and then have a separate script pick the files from there, validate them, and put them in the correct place (or mail, etc).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://74491]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.