Jerry Kassebaum wrote: > I wrote back to the guys at my server, asking what they did to solve the > problem. The actual solution was that they added this line, right under the > shebang line: > > $CGITempFile::TMPDIRECTORY = '/users/web/kass/web/dns/tmp';
You could also have just done a mkdir './tmp' if ./tmp doesn't exist (you're probably sitting in your cgi-bin dir) and used 'tmp' or './tmp' for your tmp dir and then set $ENV{TMPDIR} to wherever that is. From CGI.pm docs: To ensure that the temporary file cannot be read by other CGI scripts, use suEXEC or a CGI wrapper program to run your script. The temporary file is created with mode 0600 (neither world nor group readable). The temporary directory is selected using the following algorithm: 1. if the current user (e.g. "nobody") has a directory named "tmp" in its home directory, use that (Unix systems only). 2. if the environment variable TMPDIR exists, use the location indicated. 3. Otherwise try the locations /usr/tmp, /var/tmp, C:\temp, /tmp, /temp, ::Temporary Items, and \WWW_ROOT. Each of these locations is checked that it is a directory and is writable. If not, the algorithm tries the next choice. _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs