Daily pic problem
- From: shror <shahirwm@xxxxxxxxx>
- Date: Sat, 20 Sep 2008 05:34:09 -0700 (PDT)
Hi every body,
am trying to create a php script that get a daily picture but am
having a problem with that,
here is the code am using:
<?php
$date = date("Y-m-d");
echo "";
$ext = ".jpg";
$photo = "/DailyPic/photos/thumbs/$date". $ext ;
switch ($photo){
case "file_exisits ($photo)":
echo "<a href='/DailyPic/photos/$date". $ext ."'>";
echo "<img src='";
echo "/DailyPic/photos/thumbs/$date". $ext ;
echo "'></a>";
break;
default:
echo "<a href='/DailyPic/photos/default.jpg'>";
echo "<img src='";
echo "/DailyPic/photos/thumbs/default.jpg";
echo "'></a>";
break;
}
?>
what I get is the default image only so I need some help please.
Thanks for and support given in advance
shror
.
- Follow-Ups:
- Re: Daily pic problem
- From: transpar3nt
- Re: Daily pic problem
- From: Jerry Stuckle
- Re: Daily pic problem
- From: shror
- Re: Daily pic problem
- Prev by Date: Re: reference to a function
- Next by Date: Re: Daily pic problem
- Previous by thread: ****** SPAM ******
- Next by thread: Re: Daily pic problem
- Index(es):
Relevant Pages
|