Jump to content
php.lv forumi

Palidzibu ar daily picture


Darkangel

Recommended Posts

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

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

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

×
×
  • Create New...