댓글 검색 목록

[php] 매일 새로운 이미지 보여주기

페이지 정보

작성자 운영자 작성일 15-05-18 21:47 조회 1,973 댓글 0

<?php

$image_folder = "images/";

$today = date('d');

if (file_exists($image_folder."/".$today.".jpg")) {

echo "<center><br /><br /><img src="$image_folder/".$today.".jpg"></center>";

}

else {

echo "No image was found for $today";

}

/* First to collect images */

?> 

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.