millers Posted March 24, 2008 Report Share Posted March 24, 2008 varat kads iedot man script kas uzrada file izmeru ?? kb mb utt .. Link to comment Share on other sites More sharing options...
darksign Posted March 24, 2008 Report Share Posted March 24, 2008 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... ;) Link to comment Share on other sites More sharing options...
millers Posted March 24, 2008 Author Report Share Posted March 24, 2008 thx.. Link to comment Share on other sites More sharing options...
millers Posted March 24, 2008 Author Report Share Posted March 24, 2008 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 ? Link to comment Share on other sites More sharing options...
Zandis Murāns Posted March 24, 2008 Report Share Posted March 24, 2008 <?php // outputs e.g. somefile.txt: 1024 bytes $filename = 'faili/cs16.exe'; echo '<a href="'.$filename.'">'.basename($filename) . '</a>: ' . filesize($filename) . ' bytes'; ?> Link to comment Share on other sites More sharing options...
Kavacky Posted March 24, 2008 Report Share Posted March 24, 2008 Linkā jau tāpat būs redzams, no kurienes tas fails nāk. Link to comment Share on other sites More sharing options...
millers Posted March 24, 2008 Author Report Share Posted March 24, 2008 nee nu ja bet prost lai neradas .. nu kr4 thxx jums visiem .. Link to comment Share on other sites More sharing options...
Zandis Murāns Posted March 24, 2008 Report Share Posted March 24, 2008 kr4 davai nav par ko Link to comment Share on other sites More sharing options...
Recommended Posts