millers Posted March 24, 2008 Report Posted March 24, 2008 varat kads iedot man script kas uzrada file izmeru ?? kb mb utt ..
darksign Posted March 24, 2008 Report 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... ;)
millers Posted March 24, 2008 Author Report 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 ?
Zandis Murāns Posted March 24, 2008 Report 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'; ?>
Kavacky Posted March 24, 2008 Report Posted March 24, 2008 Linkā jau tāpat būs redzams, no kurienes tas fails nāk.
millers Posted March 24, 2008 Author Report Posted March 24, 2008 nee nu ja bet prost lai neradas .. nu kr4 thxx jums visiem ..
Recommended Posts