Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Perl Deleting image
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
cwarrior




PostPosted: Thu Nov 04, 2010 8:26 pm   Post subject: Perl Deleting image

Hi,

so I'm trying to delete an image from a directory within a perl cgi script

I am using the following code and even though I don't get any errors it just wont delete the images from the given directory

code:

my @files = param('fileName');

foreach (@files)
{
chomp($_);
my $filetodelete = '/uploads/'. $_;
unlink ($filetodelete);
}


Please can somebody help me with this, I would really appreciate it.
Sponsor
Sponsor
Sponsor
sponsor
cwarrior




PostPosted: Mon Nov 08, 2010 12:12 pm   Post subject: RE:Perl Deleting image

I will make love to anyone who helps me with this.
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: