Ron Goral wrote:
Thanks again for the replies.  I contacted my host and the shared
SSL does indeed operate under its own name which is different from
mine.  It is possible to create files under such circumstances, but
they must be created in a folder that is 0777.  I'm not crazy about
having a folder set to 0777 full of files set to 0666.  =)

You don't need to set the permission of script created files to 0666. They would be owned by the user CGI is run as, so 0600 (or 0644) would be sufficient.

As for creating the file with '+>>', this would allow for read and
append ops on the file.  In the original function, if the log file
existed, it was to be searched for particular input and then
written to.  If it did not exist, it was to be created and then
written to.

I think the '+' character in the second argument passed to open() presupposes that the file exists. sysopen() may provide the functionality you need.

I apologize again for the off-topic nature of these postings.

Actually, while Unix file permission details may be off topic, how to open a file properly is not... ;-)

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to