Jump to content

Unlink() function


lban1

Recommended Posts

If I use code:

while ($row = mysql_fetch_assoc($result)) {

@unlink(SRV_ROOT . IMAGE_DIR . $row['image']);

}

 

 

What is the difference between

@unlink(SRV_ROOT . IMAGE_DIR . $row['image']);

 

AND

 

unlink(SRV_ROOT . IMAGE_DIR . $row['image']);

 

On this path is deleted image files, but why use symbol @

When it is used in syntax, and why?

 

Tanks in advance

Link to comment
https://forums.phpfreaks.com/topic/227778-unlink-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.