Re: deleteing a file from server

From: Date: Fri, 24 May 2002 11:45:45 +0000
Subject: Re: deleteing a file from server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99076@lists.php.net to get a copy of this message
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" );
                }
HTH Mike

« previous php.general (#99076) next »