Jump to content
Fórum Script Brasil
  • 0


Guest --Rafael --


Guest --Rafael --

$delete = unlink ("$pasta_dir$nome");

if($delete) {

echo "A imagem deletada com sucesso!";


else {

echo "A imagem não pode ser deletada";


caso não exista a imagem o php retorna

Warning: unlink(imagens/aaaaa.jpg) [function.unlink]: No such file or directory in D:\xampp\htdocs\senha\delete.php on line 17

A imagem não pode ser deletada

como não retornar esse erro

apenas a msg?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...