logo       

Re: deleteing a file from server: msg#03620

php.general

Subject: Re: deleteing a file from server

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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise