Jee Posted October 11, 2004 Report Share Posted October 11, 2004 (edited) Piemeeram man ir kaadaa mapee bildes un no mapes es taas bildes izlashu shaagi: while(($bildes = readdir($galerija)) != false) { if($bildes == ".") { $bildiite = ""; } elseif($bildes == "..") { $bildiite = ""; } elseif($bildes == "Thumbs.db") { $bildiite = ""; } else { $bildiite = "<img src=\"$img/$bildes\" width=\"120px\" height=\"120px\" border=\"1\">"; } echo "$bildiite"; } Kaa vareetu izlasiit tikai pirmo bildi? Edited October 11, 2004 by Jee Link to comment Share on other sites More sharing options...
hu_ha Posted October 11, 2004 Report Share Posted October 11, 2004 nu tas kods tev kaut kāds dīvains... un jautājums arī - kas ir pirmā bilde? while(($bildes = readdir($galerija)) != false) { if ($bildes!="." && $bildes!=".." && $bildes != "Thumbs.db") { $bildiite = "<img src=\"$img/$bildes\" width=\"120px\" height=\"120px\" border=\"1\">"; break; } } vai $i=0; while(($bildes = readdir($galerija)) != false && $i==0) { if ($bildes!="." && $bildes!=".." && $bildes != "Thumbs.db") { $bildiite = "<img src=\"$img/$bildes\" width=\"120px\" height=\"120px\" border=\"1\">"; $i=1; } } Link to comment Share on other sites More sharing options...
Jee Posted October 11, 2004 Author Report Share Posted October 11, 2004 Liels paldies! Viss sanaaca. Link to comment Share on other sites More sharing options...
Venom Posted October 12, 2004 Report Share Posted October 12, 2004 un vispār @unlink($galerija.'/Thumbs.db'); kā mani tie faili liekie besī Link to comment Share on other sites More sharing options...
bubu Posted October 12, 2004 Report Share Posted October 12, 2004 A kur tādus Thums.db var dabūt, savu mūžu uz sava datora tādus neesmu manījis :) Link to comment Share on other sites More sharing options...
Venom Posted October 12, 2004 Report Share Posted October 12, 2004 A kur tādus Thums.db var dabūt, savu mūžu uz sava datora tādus neesmu manījis :) a nu aizver linuxu! Link to comment Share on other sites More sharing options...
bubu Posted October 12, 2004 Report Share Posted October 12, 2004 Nav šis man vaļā :) Es to teikdams arī Win pie reizes domāju. Link to comment Share on other sites More sharing options...
Venom Posted October 12, 2004 Report Share Posted October 12, 2004 nu tad win98 vai acdsee ;) vair arī tiešām neesi tās nejaukās kešdatnes manījis? Link to comment Share on other sites More sharing options...
bubu Posted October 12, 2004 Report Share Posted October 12, 2004 Hmm, nē neesmu. Ne uz Win98, ne WinXP. Un bilžu skatīšanai lietoju IrfanView ne ACDSee. Lab nav svarīgi, cik saprotu ar to arī man ir noveicies, ka neesmu ;) Link to comment Share on other sites More sharing options...
Jee Posted October 12, 2004 Author Report Share Posted October 12, 2004 Skatoties vienkaarshi bildes to Thumbs.db neredzeesi! Link to comment Share on other sites More sharing options...
bubu Posted October 13, 2004 Report Share Posted October 13, 2004 Skatoties vienkaarshi bildes to Thumbs.db neredzeesi! Tu domā es kāds lāme? Arī hidden un system failus rādot nekas neuzrādās! ;) Link to comment Share on other sites More sharing options...
PheliX Posted October 13, 2004 Report Share Posted October 13, 2004 iznjem kjeksi lai thumbnailus jams kesho :) Link to comment Share on other sites More sharing options...
Venom Posted October 13, 2004 Report Share Posted October 13, 2004 iznjem kjeksi lai thumbnailus jams kesho :) pēc instalēšanas uzreiz pielāgoju windows explorer savām vajadzībām (ikdienā izmantoju ontrack powerdesk, net ja nu savajagās) - tik un tā tas mēsls rodas (kaut arī tas v/b 0 kb apjomā) Link to comment Share on other sites More sharing options...
Recommended Posts