lban1 Posted February 15, 2011 Share Posted February 15, 2011 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 More sharing options...
AbraCadaver Posted February 15, 2011 Share Posted February 15, 2011 The @ suppresses errors. You should not use it. Link to comment https://forums.phpfreaks.com/topic/227778-unlink-function/#findComment-1174624 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.