CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
unlink not working

 



clem_c_rock
Novice

Dec 11, 2006, 1:36 PM

Post #1 of 2 (1878 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


KevinR
Veteran


Dec 11, 2006, 2:23 PM

Post #2 of 2 (1875 views)
Re: [clem_c_rock] unlink not working [In reply to] Can't Post

http://www.tek-tips.com/viewthread.cfm?qid=1311644&page=1
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives