ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


±â³äÀÏ °è»ê ÇÁ·Î±×·¥ (PHP)
17³â Àü
<style type='text/css'>
BODY
{scrollbar-face-color: #ffffff; scrollbar-shadow-color: #849CBD;
scrollbar-highlight-color: #849CBD; scrollbar-3dlight-color: #ffffff;
scrollbar-darkshadow-color: #ffffff; scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #849CBD}
<!--
A:link {color:black;text-decoration:none;}
A:visited {color:black;text-decoration:none;}
A:active {color:red;text-decoration:none;}
A:hover {color:blue;text-decoration:none;}
.ver8 {font-family:Verdana,Arial,µ¸¿ò;font-size:8pt}
p,br,body,td,select,input,form,textarea,option {font-size:9pt;}
.ad{border:1 solid black}
.cont{line-height:140%}
.editbox {border:1 solid black; background-color:white;}
-->
</style>
<html>
<head>
<title>xtx.kr</title>
</head>
<body bgcolor=#f7f7f7>
<center>
<?

function theday($s_year, $s_month, $s_day, $e_year, $e_month, $e_day) {
    $start = mktime(0, 0, 0, $s_month, $s_day, $s_year);
    $end = mktime(0, 0, 0, $e_month, $e_day, $e_year);

    $whole = $end - $start;

    $days_whole = $whole/(60*60*24);

    return $days_whole;
}

$theweek = array("ÀÏ", "¿ù", "È­", "¼ö", "¸ñ", "±Ý", "Åä");

echo("<b>±â³äÀÏ °è»ê µµ¿ì¹Ì</b><br><br>n");
echo("<table bordercolor=white bordercolorlight=silver border cellpadding=3 cellspacing=0 bgcolor=#e0e0e0>n");

$temp = theday(2000, 5, 5, date("Y", mktime()), date("m", mktime()), date("j", mktime()));

echo("<tr><td><b>¿À´Ã³¯Â¥</b></td><td>".date("Y", mktime())."³â ".date("m", mktime())."¿ù ".date("d", mktime())."ÀÏ ÀÔ´Ï´Ù.</td></tr>n");
echo("<tr><td colspan=2 align=center>ȨÆäÀÌÁö°¡ ¹®À» ¿¬Áö ".$temp."ÀÏ Áö³µ½À´Ï´Ù.</td></tr>n");

echo("<tr><td><b>±â³äÀÏ</b></td><td><form name=adate><select name=a_year size=1>");
for($i=1990;$i<2011;++$i) {
    echo("<option value=$i");
    if($a_year == "") {
        $a_year = 2000;
    }
    if($i == $a_year) {
        echo(" selected");
    }
    echo(">$in");
}
echo("</select>³â ");

echo("<select name=a_month size=1>");
for($i=1;$i<13;++$i) {
    echo("<option value=$i");
    if($a_month == "") {
        $a_month = 1;
    }
    if($i == $a_month) {
        echo(" selected");
    }
    echo(">$in");
}
echo("</select>¿ù ");

echo("<select name=a_day size=1>");
for($i=1;$i<32;++$i) {
    echo("<option value=$i");
    if($a_day == "") {
        $a_day = 1;
    }
    if($i == $a_day) {
        echo(" selected");
    }
    echo(">$in");
}
echo("</select>ÀÏ</td></tr>n");

echo("<tr><td colspan=2 align=center><input type=submit value="¿À´ÃÀº ¸çĥ°?"</form></td></tr>n");

$temp = theday($a_year, $a_month, $a_day, date("Y", mktime()), date("m", mktime()), date("j", mktime()));

echo("<tr><td><b>°è»ê°á°ú</b></td><td>".$a_year."³â ".$a_month."¿ù ".$a_day."ÀϷκÎÅÍ ".$temp."ÀÏ° ³¯ÀÔ´Ï´Ù.</td></tr>n");
echo("<tr><td colspan=2 align=center><b>±â³äÀϷκÎÅÍ ¸çĥ° ³¯À» ¾Ë°í ½ÍÀ¸¼¼¿ä?</b></td></tr>n");

if($count == "") {
    $count = 100;
}
echo("<tr><td><form name=daycount><input type=text name=count size=2 maxlength=5 value=$count>ÀÏ° µÇ´Â³¯Àº</td>");

$temp = mktime(0, 0, 0, $a_month, $a_day, $a_year) + 86400*$count;

echo("<td>".date("Y", $temp)."³â ".date("m", $temp)."¿ù ".date("d", $temp)."ÀÏ ".$theweek[date("w", $temp)]."¿äÀÏÀÔ´Ï´Ù.</td></tr>n");
echo("<tr><td colspan=2 align=center><input type=submit value="±×³¯Àº ¾ðÁ©±î?"</form></td></tr></table>n<br>n");

?>
</body>
</html>
ÃßõÃßõ : 264 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
2,889
·¹À̸̽𵨠¹ÚÁöÀº
2,888
PHPÀÇ php.ini ÆÄÀÏ¿¡¼­ ¼³Á¤ÇÒ ¼ö ÀÖ´Â ÁÖ¿ä Ç׸ñµéÀ» Ä«Å×°í¸®º°·Î Á¤¸®
2,887
À¯Æ©ºê µ¿¿µ»óÀÇ ½æ³×ÀÏ À̹ÌÁö¸¦ üũÇÏ¿© À¯È¿ÇÑ ¿µ»óÀ̾ƴҶ§ ¿¬°áµÈ üũ¹Ú½º¸¦ ÀÚµ¿À¸·Î üũ
2,886
À̹ÌÁö URLÀÌ À¯È¿ÇÏÁö ¾ÊÀ» ¶§, ÇØ´ç À̹ÌÁö¿Í ¿¬°áµÈ üũ¹Ú½º¸¦ ÀÚµ¿À¸·Î üũ
2,885
HTTPS·Î Á¢¼ÓÇÑ »ç¿ëÀÚ¸¦ °­Á¦·Î HTTP·Î ¸®µð·º¼Ç ÇÏ·Á¸é
2,884
PHP¿¡¼­ MP3 ÆÄÀÏÀ» Á÷Á¢ ÀÐ°í ½ºÆ®¸®¹Ö Çϱâ
2,883
ÇöÀç ÆäÀÌÁö°¡ location.reload()¿¡ ÀÇÇØ »õ·Î°íħµÇ¾ú´ÂÁö
2,882
ÅؽºÆ® ÆÄÀÏÀ» Àаí, °¢ ÁÙÀÇ ³¡¿¡¼­ 6±ÛÀÚ¸¦ »èÁ¦ÇÑ ÈÄ, °á°ú¸¦ »õ·Î¿î ÆÄÀÏ¿¡ ÀúÀåÇÕ´Ï´Ù.
2,881
cURLÀ» »ç¿ëÇÏ¿© ¸®´ÙÀÌ·ºÆ®¸¦ µû¶ó°¡ ÃÖÁ¾ URL °¡Á®¿À±â
2,880
[PHP] $_SERVER ȯ°æº¯¼ö
2,879
10Áø¼ö <-> 16Áø¼ö º¯È¯±â PHP¼Ò½º
2,878
ÅؽºÆ®¿¡ Á÷Á¢ ±×¶óµ¥ÀÌ¼Ç »ö»óÀ» Àû¿ëÇÏ·Á¸é?
2,877
CSS¸¦ »ç¿ëÇÏ¿© ¿ä¼ÒÀÇ ³»¿ë¹°¿¡ µû¶ó width¸¦ Á¶Á¤ÇÏ´Â ¹æ¹ý
2,876
À¥¼­¹ö ip È®ÀÎ
2,875
À¥È£½ºÆÃÀÇ Àý´ë°æ·Î¸¦ È®ÀÎ
2,874
input ÀÔ·Â ÇÊµå ¾ÕµÚ °ø¹é ½Ç½Ã°£ Á¦°Å
2,873
Placeholder Æ÷Ä¿½º½Ã °¨Ãß±â
2,872
MySQL Áߺ¹µÈ µ¥ÀÌÅ͸¦ »èÁ¦
2,871
MySQL Áߺ¹ µ¥ÀÌÅÍ È®ÀÎ
2,870
sessionStorage.getItem ¿Í sessionStorage.setItem
2,869
Á¦ÀÌÄõ¸® ·£´ýÀ¸·Î ¹è°æ»ö º¯°æ
2,868
preg match¿¡ °üÇÑ Á¤±Ô½Ä
2,867
Stream an audio file with MediaPlayer ¿Àµð¿À ÆÄÀÏ ½ºÆ®¸®¹Ö Çϱâ
2,866
Audio Streaming PHP Code
2,865
PHP $ SERVER ȯ°æ º¯¼ö Á¤¸®
2,864
Vimeo (ºñ¸Þ¿À) API ¸¦ »ç¿ëÇÏ¿© Ç÷¹À̾î ÄÁÆ®·ÑÇϱâ
2,863
iframe »ç¿ë½Ã ÇÏ´Ü¿¡ ¹ß»ýÇÏ´Â °ø¹é Á¦°Å¹æ¹ý
2,862
¾ÆÀÌÇÁ·¹ÀÓ(iframe) Àüüȭ¸é °¡´ÉÇÏ°Ô Çϱâ
2,861
ºÎÆ®½ºÆ®·¦(bootstrapk)¿¡¼­ »ç¿ëÇÏ´Â class¸í Á¤¸®
2,860
ºÎÆ®½ºÆ®·¦ CSS
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.