Re_Boot Posted October 25, 2007 Report Share 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) ) Link to comment Share on other sites More sharing options...
andrisp Posted October 25, 2007 Report Share Posted October 25, 2007 Mums slinkums atbildēt. Link to comment Share on other sites More sharing options...
martins256 Posted October 25, 2007 Report Share Posted October 25, 2007 #šitais derēs lai nolasītu tieši jpg bildi... $im = imagecreatefromjpeg('mape/bilde.jpg'); Link to comment Share on other sites More sharing options...
pilots Posted October 25, 2007 Report Share Posted October 25, 2007 Extracting Images from a Directory http://www.the-art-of-web.com/php/dirlist/1/ Link to comment Share on other sites More sharing options...
Re_Boot Posted October 25, 2007 Author Report Share 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 Link to comment Share on other sites More sharing options...
martins256 Posted October 25, 2007 Report Share Posted October 25, 2007 varbūt vispirms pasaki, ko tu gribi ar to bildi darīt... Link to comment Share on other sites More sharing options...
Re_Boot Posted October 25, 2007 Author Report Share 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... Link to comment Share on other sites More sharing options...
martins256 Posted October 25, 2007 Report Share 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 ? Link to comment Share on other sites More sharing options...
Re_Boot Posted October 25, 2007 Author Report Share Posted October 25, 2007 (edited) Parāda bildi useram, kas to upload... Lidzigi kā Draugiem.lv Edited October 25, 2007 by Re_Boot Link to comment Share on other sites More sharing options...
martins256 Posted October 25, 2007 Report Share Posted October 25, 2007 echo "<img src='mape/$user_id.jpg'>"; Link to comment Share on other sites More sharing options...
andrisp Posted October 25, 2007 Report Share 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. :) Link to comment Share on other sites More sharing options...
Re_Boot Posted October 25, 2007 Author Report Share 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)? Link to comment Share on other sites More sharing options...
martins256 Posted October 25, 2007 Report Share 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'>"; Link to comment Share on other sites More sharing options...
Recommended Posts