in reply to Re: Re: Slightly OT: Perl and CGI - reading a file
in thread Slightly OT: Perl and CGI - reading a file

Upload this script and run via CGI:

#!/usr/bin/perl use Cwd; print "Content-Type: text/html\n\n"; print "<p>Perl says CWD is: ", cwd(); print "<p>System PWD says: ", `pwd`;

cheers

tachyon

Replies are listed 'Best First'.
Re: Re: Re: Re: Slightly OT: Perl and CGI - reading a file
by C_T (Scribe) on Mar 31, 2004 at 16:45 UTC
    Apparently they're both returning nothing. I get:

    Perl says CWD is: System PWD says:

    As output.

    Charles Thomas
    Madison, WI

      Your server must be running some sort of 'broken' virualisation environment. There are too many posibilities. I would suggest finding a host that will let you have SSH access. See perlmonk.org for a good option if you just want to play about.

      cheers

      tachyon