[PHP] deleteing a file from server

2002-05-24 Thread David Orn Johannsson
I use the copy function to copy a file to the server, like this; copy($file, ./jpg/$name.jpg); what would I do to removeit from the server, or delete it?

Re: [PHP] deleteing a file from server

2002-05-24 Thread m u i n a r
At 13:34 24.05.02, you wrote: I use the copy function to copy a file to the server, like this; copy($file, ./jpg/$name.jpg); what would I do to removeit from the server, or delete it? if( file_exists( $dirName/$file ) ) { unlink( $dirName/$file );