Huxley
07-29-2004, 04:11 PM
I'm a perl newcomer, so please excuse any simple errors I make!
I'm using a script that requires the use of the win32::shortcut module and it works fine on my standard windows perl instilation at home, but when I try to upload it to a server (which has mod_perl) I get an internal server error.
Code
sub create_shortcut {
if (-e "$DIR/$FORM{ID}.lnk"){
$LINK=new Win32::Shortcut("$DIR/$FORM{ID}.lnk");
} else {
$LINK=new Win32::Shortcut();
}
$LINK->{'Path'}="$SERVER/$FORM{ID}.mp3";
$LINK->{'Arguments'}="";
$LINK->{'WorkingDirectory'}="/home/virtual/website.co.uk/var/www/html/";
$LINK->{'Description'}="$added";
$LINK->{'ShowCmd'}=SW_SHOWMAXIMIZED;
$LINK->{'IconLocation'}="$PATH/audio.ico";
$LINK->Save("$DIR/$FORM{ID}.lnk");
$LINK->Close();
}
Any ideas as to what could be going wrong would be great. Thanks,
Huxley
I'm using a script that requires the use of the win32::shortcut module and it works fine on my standard windows perl instilation at home, but when I try to upload it to a server (which has mod_perl) I get an internal server error.
Code
sub create_shortcut {
if (-e "$DIR/$FORM{ID}.lnk"){
$LINK=new Win32::Shortcut("$DIR/$FORM{ID}.lnk");
} else {
$LINK=new Win32::Shortcut();
}
$LINK->{'Path'}="$SERVER/$FORM{ID}.mp3";
$LINK->{'Arguments'}="";
$LINK->{'WorkingDirectory'}="/home/virtual/website.co.uk/var/www/html/";
$LINK->{'Description'}="$added";
$LINK->{'ShowCmd'}=SW_SHOWMAXIMIZED;
$LINK->{'IconLocation'}="$PATH/audio.ico";
$LINK->Save("$DIR/$FORM{ID}.lnk");
$LINK->Close();
}
Any ideas as to what could be going wrong would be great. Thanks,
Huxley