Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

my $logpath = "ftp://rpgwarrior:PASS@l33t.ca/public_html/aimbot/logs/users/$nick.log";

open(USRLOG,">>$logpath");
print USRLOG ctime()."\t$nick: $stripped\n";
print USRLOG ctime()."\t$mynick: $arelem\n";
close(USRLOG);

why dont that work???
ive tryed it on other sites that l33t.ca too but it still wont work, why??

edited: Sun Aug 18 16:15:59 2002 by jeffa - title change

  • Comment on Help appending to a remote log file (was: HEEELP)

Replies are listed 'Best First'.
(jeffa) Re: Help appending to a remote log file
by jeffa (Bishop) on Aug 18, 2002 at 16:22 UTC
    You can't open a remote file on a local box like that. Try Net::FTP instead.

    UPDATE:

    Hmmm, on second thought ... i don't think i would use FTP for this problem. One solution is to write a CGI script on the remote box, maybe htaccess protect it. Another is to use SOAP::Lite or XML::RPC to send messages.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)