Jump to content

Filesize


dreamwest

Recommended Posts

$file ='file.mpg';

if( filesize($file) <500) {

unlink($file);

}

 

use single qoutes and take out the kb after the 500 number

 

This is one i used less because the file I had was 70o and something kb

 

I am amaze this is my first time helping someone efficiently.

 

Good luck in your path

Link to comment
https://forums.phpfreaks.com/topic/159025-filesize/#findComment-838655
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.