*jancis38* Posted January 5, 2008 Report Share Posted January 5, 2008 (edited) Vai nav kādam skripts, kas varētu aiztāt bildi, kuru nevar atrast? EDIT: aizstāj ar citu bildi. Edited January 5, 2008 by *jancis38* Link to comment Share on other sites More sharing options...
Val Posted January 5, 2008 Report Share Posted January 5, 2008 vēlreiz un latviski Link to comment Share on other sites More sharing options...
*jancis38* Posted January 5, 2008 Author Report Share Posted January 5, 2008 Pieņemsim: <img src="bilde.jpg"> viņš neatrod bilde.jpg un bilde.jpg tiek aizstāta pieņemsim ar nav_atrasts.jpg Link to comment Share on other sites More sharing options...
Kavacky Posted January 5, 2008 Report Share Posted January 5, 2008 $bilde = file_exists('celsh/uz/bildi.jpg' ) ? 'bilde.jpg' : 'nav_atrasts.jpg'; echo '<img src="', $bilde, '" alt="bilde" /.'; Link to comment Share on other sites More sharing options...
*jancis38* Posted January 5, 2008 Author Report Share Posted January 5, 2008 hmm, nestrādā, ne vienu, ne otru bildi nerādija. Link to comment Share on other sites More sharing options...
Delfins Posted January 5, 2008 Report Share Posted January 5, 2008 mod_rewrite Link to comment Share on other sites More sharing options...
martins256 Posted January 5, 2008 Report Share Posted January 5, 2008 ar kkādiem js to lietu nevar izdarīt ? Link to comment Share on other sites More sharing options...
andrisp Posted January 5, 2008 Report Share Posted January 5, 2008 Kavacky variantam noteikti jāstrādā. Link to comment Share on other sites More sharing options...
marcis Posted January 5, 2008 Report Share Posted January 5, 2008 Minēšu - tu noteikti to skriptu paņēmi, nokopēji, iekopēji, palaidi un neiet, ja? Link to comment Share on other sites More sharing options...
KillerBean Posted January 5, 2008 Report Share Posted January 5, 2008 ja tiešām tā darīji, tad: a) nomaini path uz bildēm b) tur vienā vietā . vietā jābūt > savādāk tags nav noslēgts :P Link to comment Share on other sites More sharing options...
*jancis38* Posted January 5, 2008 Author Report Share Posted January 5, 2008 es uzrakstīju visu kā vajag, bet viņš nerāda. :( Link to comment Share on other sites More sharing options...
localhero Posted January 5, 2008 Report Share Posted January 5, 2008 Ieliec datu bazē ka pec noklusejuma bilde ir nav_atrasts.jpg Link to comment Share on other sites More sharing options...
andrisp Posted January 5, 2008 Report Share Posted January 5, 2008 es uzrakstīju visu kā vajag, bet viņš nerāda. :( Parādi kā tu uzrakstīji. Link to comment Share on other sites More sharing options...
*jancis38* Posted January 6, 2008 Author Report Share Posted January 6, 2008 (edited) <?php $bilde = file_exists('img/mapes/{map}.jpg' ) ? 'img/mapes/{map}.jpg' : 'img/off.jpg'; echo '<img src="', $bilde, '" alt="bilde" /.'; ?> Tas ir domāts CS servera monitoram, bet viņš ne vienu, ne otru neparāda, bildes ir savā vietā! Edited January 6, 2008 by *jancis38* Link to comment Share on other sites More sharing options...
andrisp Posted January 6, 2008 Report Share Posted January 6, 2008 Kas ir {map} ? Gadijumā nedomāji {$map}. Un tādā gadijumā tev jāliek tas strings iekš dubultpēdiņām. Link to comment Share on other sites More sharing options...
Recommended Posts