Jump to content

[SOLVED] unlink()


dreamwest

Recommended Posts

Im trying to delete files with 0 size, im using unlink function but it doesnt work, do the files need to have a size greater than 0 to unlink?

 

$fileName = "Video.mpg";

if (filesize($fileName) < 0){

	unlink($fileName);
	echo $fileName." too small - deleted<br>";
}

 

The echo part is printing out but the unlink doesnt do anything

Link to comment
https://forums.phpfreaks.com/topic/159046-solved-unlink/
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.