Perl script error "CGI open of tmpfile: Permission denied" on Windows hosting.

Perl script error "CGI open of tmpfile: Permission denied"

With perl for windows sometimes the TMPDIR environment variable does not get set to the correct value. To work around this issue you can set the TMPDIR variable to be the same as TEMP using code similar to that shown below.
BEGIN { if ($^O =~ /MSWin32/i) { $ENV{'TMPDIR'}=$ENV{'TEMP'}; } } use CGI; 
  • 0 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

Where is perl located?

Perl is located at /usr/bin/perl - So the first line of your perl script should look like......

Is there a way to test my cgi-bin / perl is working ?

If you are experiencing problems with your cgi-bin / perl scripts try this test ... Enter this...

Powered by WHMCompleteSolution