permissions - can't get perl to write to an external file

Discussion in 'HTML / PHP / JavaScript / CSS' started by Bruce, May 24, 2007.

  1. Bruce

    Bruce DiscountASP.NET Staff

    Try use the full path.


    You can find the physical path to your site root in the account info section in the control panel.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  2. with the following code:

    use CGI qw:)standard);
    use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
    use strict;


    open (LOG, '>>test.txt');
    print LOG 'test\n';
    close (LOG);


    I get the error:

    CGI Error
    The specified CGI application misbehaved by not returning a complete set of HTTP headers.


    the code works locally. I know it has something to do with write permissions but I'm not exactly sure how to change them.

    any ideas?
     
  3. With the Win32 port of Perl you have to use the full path with the double slashes.

    d:\\user\\myscripts\\test.pl

    Most of the documentation is from the old days and for unix flavored servers where you don't need to do that.

    I have to note that I am happy to see that 3 legged dog they call Perl for Windows slowing dieing as slow death /emoticons/skull.gif
     

Share This Page