Jee Posted October 11, 2004 Report 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
hu_ha Posted October 11, 2004 Report 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; } }
Venom Posted October 12, 2004 Report Posted October 12, 2004 un vispār @unlink($galerija.'/Thumbs.db'); kā mani tie faili liekie besī
bubu Posted October 12, 2004 Report Posted October 12, 2004 A kur tādus Thums.db var dabūt, savu mūžu uz sava datora tādus neesmu manījis :)
Venom Posted October 12, 2004 Report 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!
bubu Posted October 12, 2004 Report Posted October 12, 2004 Nav šis man vaļā :) Es to teikdams arī Win pie reizes domāju.
Venom Posted October 12, 2004 Report Posted October 12, 2004 nu tad win98 vai acdsee ;) vair arī tiešām neesi tās nejaukās kešdatnes manījis?
bubu Posted October 12, 2004 Report 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 ;)
Jee Posted October 12, 2004 Author Report Posted October 12, 2004 Skatoties vienkaarshi bildes to Thumbs.db neredzeesi!
bubu Posted October 13, 2004 Report 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! ;)
PheliX Posted October 13, 2004 Report Posted October 13, 2004 iznjem kjeksi lai thumbnailus jams kesho :)
Venom Posted October 13, 2004 Report 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ā)
Recommended Posts