suport Posted March 31, 2009 Report Share Posted March 31, 2009 << istas saadi bet vajag te kods <?php if ($handle = opendir('C:/AppServ/www/demoo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<center>$day.$month.$year $hour:$minute $name <a href=\"http://cs.1wish.lv/demoo/$file\">Download</a></br></center>"; } } closedir($handle); } ?> kads var partaisiit ta lai buutu taa ? LUDZU ! Quote Link to comment Share on other sites More sharing options...
andism88 Posted March 31, 2009 Report Share Posted March 31, 2009 Vnk sakārto echo rindinju kaa vajag.. piemēram (uz aatro rakstīju un varbūt kautkur nokļūdījos.. bet nju ideja skaidra) <table><tr><td>Karte</td><td>datums</td></tr><?php if ($handle = opendir('C:/AppServ/www/demoo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<tr><td><a href=\"http://cs.1wish.lv/demoo/$file\">$name</a></td><td>$day.$month.$year $hour:$minute</td><tr>"; } } closedir($handle); } ?> </table> Quote Link to comment Share on other sites More sharing options...
suport Posted March 31, 2009 Author Report Share Posted March 31, 2009 vari ari pateikt ka sim vell var pievienot css klat ? lai smukak var uzmukiit ? un ka dabuut lai raada izmeeru ! piemeram tur 1mb utt ! Quote Link to comment Share on other sites More sharing options...
andism88 Posted March 31, 2009 Report Share Posted March 31, 2009 filesize($file); --> http://lv.php.net/manual/en/function.filesize.php <link rel=stylesheet type="text/css" href="fails.css"> <--css http://www.w3schools.com/css/ Quote Link to comment Share on other sites More sharing options...
suport Posted March 31, 2009 Author Report Share Posted March 31, 2009 (edited) da esmu iesaacejs , no taa http://lv.php.net/manual/en/function.filesize.php neko nesaprotu ! uzraxta vnk rindinju kads kas japievieno tam lai 3 ailee raadas vell file size ! un ar to css ar nekas nesanak.. ! Edited March 31, 2009 by suport Quote Link to comment Share on other sites More sharing options...
andism88 Posted March 31, 2009 Report Share Posted March 31, 2009 <table><tr><td>Karte</td><td>Izmērs</td><td>datums</td></tr> <?php if ($handle = opendir('C:/AppServ/www/demoo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); $izmers = filesize($file); echo "<tr><td><a href=\"http://cs.1wish.lv/demoo/$file\">$name</a></td><td>$izmers</td><td>$day.$month.$year $hour:$minute</td><tr>"; } } closedir($handle); } ?> </table> šitā laikam.. Quote Link to comment Share on other sites More sharing options...
suport Posted March 31, 2009 Author Report Share Posted March 31, 2009 nedarbojas ! Quote Link to comment Share on other sites More sharing options...
andism88 Posted March 31, 2009 Report Share Posted March 31, 2009 Kas tiesji?? Man šajā datorā nav apachi tapēc nevaru notestēt, varbūt kautkur nokļūdījos.. Quote Link to comment Share on other sites More sharing options...
cilveks Posted March 31, 2009 Report Share Posted March 31, 2009 Tas ka tu esi iesācējs, tas tevi neatbrīvo no mācīšanās. Neizskatās ka tu pats kaut ko vēlētos apgūt. Quote Link to comment Share on other sites More sharing options...
suport Posted March 31, 2009 Author Report Share Posted March 31, 2009 visu laiku kko macos , visadas pamacibas skatos utt .. bet nez sitas man neliekas kka kopa ! pierakstat plz tam kodam ta lai radas fileseze beigas .. un pielikat klat to lai css straadatu ! Quote Link to comment Share on other sites More sharing options...
andism88 Posted March 31, 2009 Report Share Posted March 31, 2009 1.kārt tiešām pašam ar kautko vajag domāt.. 2.kārt arī es esmu iesācējs..un mācos daudz īsāku laiku kā tu (spriešot pēc postiem) 3.kārt kas tieši tev nedarbojās, nav uz kompa apache un negribu likt uz servera.. Quote Link to comment Share on other sites More sharing options...
suport Posted March 31, 2009 Author Report Share Posted March 31, 2009 vis pagaidam darbojas ir 2 ailes smukas ! bet vajag lai 3 aile vell filesize radiitos .. Un pielikt tam scriptam css klat .. ! lai var izdailoot Quote Link to comment Share on other sites More sharing options...
cilveks Posted March 31, 2009 Report Share Posted March 31, 2009 Pamēģini izprast kā esošais kods darbojas, un tad arī sapratīsi kā pielikt, lai rāda faila izmēru. Quote Link to comment Share on other sites More sharing options...
suport Posted March 31, 2009 Author Report Share Posted March 31, 2009 nu centiishos , bet tad vispar ieemetat kodu ka lai css pievieno tam ! ! Quote Link to comment Share on other sites More sharing options...
suport Posted March 31, 2009 Author Report Share Posted March 31, 2009 palidz plz kads ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.