codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Deleteing files from Directory on unix  deepali.bhosale at 05:11 on Tuesday, December 18, 2007
 

Hi,
I am also facing a problem while delteing the file. The file name and the path is correct.
if (unlink($entry) == 0) {
print "File $entry deleted successfully.\n";
else {
print "File $entry was not deleted.\n";
}
and then it prints result as the File <filename> deleted successfully.
But it actaully doesn't do that. files are still in the directory. Is there any setting i have to do in my script? Could you please elaborate on that. I am new to perl. How do you found out the problem and solution for that.

Thanks in Advance,
Deepali








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Unlink
•  execution problem from newbie
•  Deleteing files from Directory on unix
•  YV12 viewer
•  alert() statement lets code work, remove it, code errors out
•  updat Date automatic
•  Need javascript help
•  help me
•  How to display a message box when record is temporary stored in session/grid view


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007