Jump to content
php.lv forumi

Recommended Posts

Posted

te buus:

 

<?php

// outputs e.g.  somefile.txt: 1024 bytes

$filename = 'somefile.txt';
echo $filename . ': ' . filesize($filename) . ' bytes';

?>

 

Ja nepiecieshams KB tad izdali ar 1024 un ja MB, tad veelreiz dali ar 1024 utt... ;)

Posted

a ka lai panak ta lai neradas no kura directory es dabonu to failu un lai radas piemeram tikai faila nosaukums un faila nosaukums ir links ? var kko tadu dabuti gatavu ?

×
×
  • Create New...