Code Comments
Programming Forum and web based access to our favorite programming groups.I haven't used perl in years. An old client just changed servers and
contacted me because an upload script I created no longer works.
The error message is
CGI open of tmpfile: No such file or directory
I've Googled this and I've tried putting the following at the top of
my script
BEGIN { $TempFile::TMPDIRECTORY = '/home/gfxprint/tmp'; }
There is already a world writable tmp directory in / and /var and /
home/gfxprint
/usr/tmp is a link to /var/tmp
I tried creating /home/gfxprint/usr/tmp
None of the above fixes the problem and I'm pulling my hair out.
Suggestions?
Jennifer
Post Follow-up to this messageToxalot wrote:
> I haven't used perl in years. An old client just changed servers and
> contacted me because an upload script I created no longer works.
>
> The error message is
> CGI open of tmpfile: No such file or directory
>
> I've Googled this and I've tried putting the following at the top of
> my script
> BEGIN { $TempFile::TMPDIRECTORY = '/home/gfxprint/tmp'; }
The variable name is $CGITempFile::TMPDIRECTORY
If you encounter further difficulties, you may want to try the CPAN
module CGI::UploadEasy.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Post Follow-up to this messageOn Mar 25, 6:12 am, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote: > Toxalot wrote: > > > > The variable name is $CGITempFile::TMPDIRECTORY > > If you encounter further difficulties, you may want to try the CPAN > module CGI::UploadEasy. > > -- > Gunnar Hjalmarsson > Email:http://www.gunnar.cc/cgi-bin/contact.pl Thanks. That fixed it. Did the variable name change? I saw that variable in more than one thread. And why would I need to set it? Why can't it just find the directory on its own? Does it have anything to do with /usr/tmp being a link and not a directory? Jennifer
Post Follow-up to this messageToxalot wrote: > On Mar 25, 6:12 am, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote: > > Thanks. That fixed it. Did the variable name change? Don't know. > And why would I need to set it? Why can't it just find the directory > on its own? Maybe insufficient permissions for /var/tmp ? -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.