
clem_c_rock
Novice
Dec 11, 2006, 1:36 PM
Post #1 of 2
(2584 views)
|
unlink not working
|
Can't Post
|
|
This is rather strange - I have a function that creates a temperary file in a directory and then a file that deletes the temperary file. They both use the base path of: D:/Websites/website_com/test/perl_scripts/test/temp/temp_dir/ and the file name would be appended to that path. The permissions are set to 777 so it should be able to be deleted by the unlink function like this: unless( unlink( $file_to_be_deleted ) ){ print "<p><b>file could not be deleted!</b>"; } I always get the error message that the file could not be deleted when I run the unlink function. any ideas? Thanks, Clem
|