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: Intermediate:
Deleting Files From server

 



yotam_k
Deleted

Jan 27, 2001, 11:12 AM

Post #1 of 5 (365 views)
Deleting Files From server Can't Post

Hay ,
Can someone help me about how deleting from the server files ?
Thank you All
Yotam.



modified
Deleted

Jan 27, 2001, 1:23 PM

Post #2 of 5 (362 views)
Re: Deleting Files From server [In reply to] Can't Post


Code
unlink (/path/to/file/todelete.txt);



yotam_k
Deleted

Jan 27, 2001, 2:02 PM

Post #3 of 5 (361 views)
Re: Deleting Files From server [In reply to] Can't Post

It's Not working......
It doesn't remove the file from the server.....
Maybe it's for something else but not for deleting files from server....
Thanks Anyway....
Yotam.



Jasmine
Administrator

Jan 27, 2001, 3:40 PM

Post #4 of 5 (358 views)
Re: Deleting Files From server [In reply to] Can't Post

unlink is the method to delete files, assuming you have permission to delete files.

What error did you receive when trying to unlink?


Look at these posts for more info and alternatives:

http://forums.perlguru.com/showflat.pl?Cat=&Board=Forum7&Number=7696&page=&view=&sb=&vc=1

http://forums.perlguru.com/showflat.pl?Cat=&Board=Forum7&Number=7141&page=&view=&sb=&vc=1




yotam_k
Deleted

Feb 2, 2001, 3:12 AM

Post #5 of 5 (344 views)
Re: Deleting Files From server [In reply to] Can't Post

I have Used
unlink "g.data" or die "Couldn't Delete File because: $!";
And It well So I thank you very much...
Yotam



 
 


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

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