Re_Boot Posted October 25, 2007 Report Posted October 25, 2007 hmm, man lūdzu kadu guide vai skriptu, kas nolasa no manis izveletas mapes image... Es zinu ka šis jau ir daudzkārt pārrunāts bet man slinkums meklēt ( Sāp galva... (headache) )
martins256 Posted October 25, 2007 Report Posted October 25, 2007 #šitais derēs lai nolasītu tieši jpg bildi... $im = imagecreatefromjpeg('mape/bilde.jpg');
pilots Posted October 25, 2007 Report Posted October 25, 2007 Extracting Images from a Directory http://www.the-art-of-web.com/php/dirlist/1/
Re_Boot Posted October 25, 2007 Author Report Posted October 25, 2007 (edited) Hmm, bet martins... Man vajag lai bildes.jpg vieta es varu ieraksti savu kodinju, $id_user , es jau megjinaju bet isti nesanaca! :( Edited October 25, 2007 by Re_Boot
martins256 Posted October 25, 2007 Report Posted October 25, 2007 varbūt vispirms pasaki, ko tu gribi ar to bildi darīt...
Re_Boot Posted October 25, 2007 Author Report Posted October 25, 2007 Nu taa... Man ir UPLOAD Skripts kas upload jpg failus ieksa uploads mapee. Un katra faila nosaukums ir Lietotaja ID ($id_user). Man vajag kadu skriptu kas nolasitu no uploads mapes $id_user.jpg failus...
martins256 Posted October 25, 2007 Report Posted October 25, 2007 kā saprast vārdu "nolasa" ? parāda visas bildes? parāda sarakstu ar visam bildēm? uzģenerē bildi, lai to tālāk varētu apstrādāt ar php ?
Re_Boot Posted October 25, 2007 Author Report Posted October 25, 2007 (edited) Parāda bildi useram, kas to upload... Lidzigi kā Draugiem.lv Edited October 25, 2007 by Re_Boot
martins256 Posted October 25, 2007 Report Posted October 25, 2007 echo "<img src='mape/$user_id.jpg'>";
andrisp Posted October 25, 2007 Report Posted October 25, 2007 Parāda bildi useram, kas to upload... Lidzigi kā Draugiem.lv Es saprotu vēlēšanos kaut ko atbildēt, bet par to tieši arī autors prasa kā izdarīt. :)
Re_Boot Posted October 25, 2007 Author Report Posted October 25, 2007 Emm, itka viss strada martins, bet ja es iznjemu veco bildi, vai uzlieku jaunu, tad radas tapat ta kas bija sakuma... Nevar uzlikt kkadu elseif (ja nav bildes tad nerada neko)?
martins256 Posted October 25, 2007 Report Posted October 25, 2007 ar is_file var pārbaudīt vai fails eksistē if(is_file("mape/$user_id.jpg")) echo "<img src='mape/$user_id.jpg'>";
Recommended Posts