Darkangel Posted January 10, 2007 Report Share Posted January 10, 2007 Man ira problema visu esu izdarijis ka vaig bet kad atveru vala lapu vins rada default bildi nevis tas dienas bildi kaut man vina ira pareizaja folderi <? $date = date("Y-m-d"); $image_url = "http://darkangel.carnikava.com/cs/Daily/DailyPic/photos"; $image_dir = "/cs/Daily/DailyPic/photos"; $thumb_url = "http://darkangel.carnikava.com/cs/Daily/DailyPic/photos/thumbs"; $thumb_dir = "/cs/Daily/DailyPic/photos/thumbs"; $default = "/cs/Daily/DailyPic/photos/default.jpg"; $ext = ".jpg"; $photo = "$image_dir/$date" . $ext . ""; if (file_exists ($photo)){ echo " <div align=center> <a href='$image_url/$date" . $ext . "' target='_blank'><img src='$thumb_url/$date" . $ext . "' border=0></a> </div> "; } else { echo " <div align=center> <img src='$default' border=0> </div> "; } ?> Link to comment Share on other sites More sharing options...
andrisp Posted January 10, 2007 Report Share Posted January 10, 2007 Es pārliecināts, ka šāds fails eksistē ? /cs/Daily/DailyPic/photos/2007-01-10.jpgVarbūt vajag:cs/Daily/DailyPic/photos/2007-01-10.jpg Link to comment Share on other sites More sharing options...
Darkangel Posted January 10, 2007 Author Report Share Posted January 10, 2007 ja esu Link to comment Share on other sites More sharing options...
andrisp Posted January 10, 2007 Report Share Posted January 10, 2007 Uztaisi echo $photo tieši pirms if. Link to comment Share on other sites More sharing options...
Darkangel Posted January 10, 2007 Author Report Share Posted January 10, 2007 Tas pats vai ar nesapratu nedau tavu domu. Link to comment Share on other sites More sharing options...
andrisp Posted January 10, 2007 Report Share Posted January 10, 2007 Nu tad neeksistē tev tas fails. Pārbaudi kārtīgi. Tev ir Nix vide, ja ? Link to comment Share on other sites More sharing options...
Darkangel Posted January 10, 2007 Author Report Share Posted January 10, 2007 Nevar ta but ka fails neeksiste ja es izdaru sadi man vins strada echo " <div align=center> <a href='$image_url/$date" . $ext . "' target='_blank'><img src='$thumb_url/$date" . $ext . "' border=0></a> </div> "; Link to comment Share on other sites More sharing options...
andrisp Posted January 10, 2007 Report Share Posted January 10, 2007 (edited) Hmm.. vispār es stipri šaubos vai eksistē fails /cs/Daily/DailyPic/photos/2007-01-10.jpg, jo spiežot pēc url http://darkangel.carnikava.com/cs/Daily/Da...c/photos/thumbs, sanāk, ka tev web rootir sistēmas root. Respektīvi - norādi relatīvo ceļo - bez / priekšā. Edited January 10, 2007 by andrisp Link to comment Share on other sites More sharing options...
Darkangel Posted January 10, 2007 Author Report Share Posted January 10, 2007 Sita adrese http://darkangel.carnikava.com/cs/Daily/Da...c/photos/thumbs nestradaja tape ka restartejas servers kur mans subdomain ira. un tiklidz es nonemu / nost no sakuma man vispar tad vins neko neatrod. Link to comment Share on other sites More sharing options...
Darkangel Posted January 10, 2007 Author Report Share Posted January 10, 2007 Un es atradu vainu kape negaja kluda man bija seit $image_url = "http://darkangel.carnikava.com/cs/Daily/DailyPic/photos"; $image_dir = "/cs/Daily/DailyPic/photos"; $thumb_url = "http://darkangel.carnikava.com/cs/Daily/DailyPic/photos/thumbs"; $thumb_dir = "/cs/Daily/DailyPic/photos/thumbs"; $default = "/cs/Daily/DailyPic/photos/default.jpg"; a vaidzeja but sadi $image_url = "http://darkangel.carnikava.com/cs/Daily/DailyPic/photos"; $image_dir = "photos"; $thumb_url = "http://darkangel.carnikava.com/cs/Daily/DailyPic/photos/thumbs"; $thumb_dir = "photos/thumbs"; $default = "photos/default.jpg"; Link to comment Share on other sites More sharing options...
andrisp Posted January 10, 2007 Report Share Posted January 10, 2007 Un ko es teicu ? Link to comment Share on other sites More sharing options...
Darkangel Posted January 10, 2007 Author Report Share Posted January 10, 2007 (edited) Tu man ta neteici tu teici sadi. /cs/Daily/DailyPic/photos/2007-01-10.jpg Varbūt vajag:cs/Daily/DailyPic/photos/2007-01-10.jpg Un tur ira starpiba. Edited January 10, 2007 by Darkangel Link to comment Share on other sites More sharing options...
andrisp Posted January 10, 2007 Report Share Posted January 10, 2007 Es teicu, ka neekistē fails /cs/Daily/DailyPic/photos/2007-01-10.jpg. Link to comment Share on other sites More sharing options...
Darkangel Posted January 10, 2007 Author Report Share Posted January 10, 2007 Tu man radiji sita . /cs/Daily/DailyPic/photos/2007-01-10.jpg Varbūt vajag:cs/Daily/DailyPic/photos/2007-01-10.jpg A tu nevareji paradit paraugu ka vaig iskatities un man tas default imege gaja /cs/Daily/DailyPic/photos ar sitadu bet negaja dienas bilde pati un tiklidz es nomainiju no sita /cs/Daily/DailyPic/photos/ uz sadu cs/Daily/DailyPic/photos/ man nestradaja dienas bilde un default bilde ari vairs negaja Link to comment Share on other sites More sharing options...
bubu Posted January 10, 2007 Report Share Posted January 10, 2007 Vajag arī domāt, ne tikai forumu mācēt atvērt. Link to comment Share on other sites More sharing options...
Recommended Posts