that is the correct way to specify that path if /secure directory is in /usr, but there is not a "standard" directory such as "/usr" to place "ftp directories".
for example the root directory for one ftp login could be "/home/username/" and for another could be "/var/log/httpd/sitename/"
#!/usr/bin/perl
print "content-type: text/html\n\n";
foreach $v (sort keys %ENV) { print "$v $ENV{$v}<br>\n"; }
What you are looking for is the DOCUMENT_ROOT environment variable, this will reveal it, and should be the first one using sort.
Note that you may have a different path to perl,
#!/usr/bin/perl
#!/usr/local/bin/perl
Check with your host's documentation, they usually post this publicly.
Note that you may have a different path to perl,
#!/usr/bin/perl
#!/usr/local/bin/perl
I think that's what he's after. It sounds to me like he is chrooted on ftp connections.
toplisek: when you're using ftp to connect to the server (I think that's what's happening to you), you're thrown into your home directory without a possibility to get out of there and access other system directories with ftp. when you run scripts, however, they are usually run without chroot (chroot = change root, root as in root directory, not root user), so /usr will be available and so will /usr/bin/perl or /usr/local/bin/perl or wherever perl may reside on your server.