Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHP¼ÆËãÖ¸¶¨ÈÕÆÚËùÔÚÖܵĿªÊ¼ºÍ½áÊøÈÕÆÚ

<html>
<head>
<title>¼ÆËã±¾ÖÜ¿ªÊ¼½áÊøÈÕÆÚ</title>
</head>
<body>
<form method="post" action="./index.html" enctype="utf-8">
<table>
<tr><td>ÊäÈëÄê·Ý</td><td><input name="year" type="text" maxlength="4" /></td></tr>
<tr><td>ÊäÈëÔ·Ý</td><td><input name="month" type="text" maxlength="2" /></td></tr>
<tr><td>ÊäÈëÌì</td><td><input name="day" type="text" maxlength="2" /></td></tr>
<tr><td colspan="2"><input type="submit" value="¼ÆËã" /></td></tr>
</table>
</form>
<?php
$time= $_POST[year].'-'.$_POST[month].'-'.$_POST[day].' 00:00:00';
echo('ÄãÊäÈëµÄʱ¼äÊÇ£º'.$time.'</br>');
$lastday=date("Y-m-d",strtotime("$time Sunday"));
echo('ÊäÈëµÄʱ¼äÐÇÆÚµÚÒ»ÌìÊÇ£º'.date("Y-m-d",strtotime("$lastday - 6 days")).'<br />');
echo('ÊäÈëµÄʱ¼äÐÇÆÚ×îºóÒ»ÌìÊÇ£º'.$lastday);
?>
</body>
</html>


Ïà¹ØÎĵµ£º

ÓÃphp»ñÈ¡±¾ÖÜ,ÉÏÖÜ,±¾ÔÂ,ÉÏÔÂ,±¾¼¾¶ÈÈÕÆڵĴúÂë

ÓÃphp»ñÈ¡±¾ÖÜ,ÉÏÖÜ,±¾ÔÂ,ÉÏÔÂ,±¾¼¾¶ÈÈÕÆڵĴúÂë,Ö÷ÒªÓõ½date,strtotimeºÍmktimeº¯Êý.
echo date("Ymd",strtotime("now")), "<br />";
echo date("Ymd",strtotime("-1 week Monday")), "<br />";
echo date("Ymd",strtotime("-1 week Sunday")), "<br />";
echo date("Ymd",strtotime("+0 week ......

php¿ò¼ÜcodeigniterÊý¾Ý¿â²Ù×÷ÕûÀí

Tag:¡¡¡¡
-
1.
$query = $this->db->query('SELECT name, title, email from my_table');
foreach ($query->result() as $row)
{
echo $row->title;
echo $row->name;
echo $row->email;
}
2.
foreach ($query->result_array() as $row)
{
echo $row['title'];
echo $row['name'];
ech ......

±»Ò»ÈºphpÖÁÉÏÖ÷ÒåÕßÈÇÄÕÁË

¡¡¡¡ÎÒ¿ª·¢µÄСվ£ºhttp://www.asprain.com£¬»¶Ó­¹ÛĦ¡¢ÌåÑ飡 
¡¡¡¡°¡£¬½ñÌì¿´µ½ºÜ¶àÈË˵ÎÒÂîPHP³ÌÐòÔ±ÊÇÔÚ³´×÷£¬Ä¿µÄÊÇÍƹãÎÒµÄÂÛ̳³ÌÐò¡£»°Ëµ£¬ËäÈ»ÎÒ֮ǰһֱºÜÏëÏë°ì·¨Ìá¸ß×Ô¼ºÐ´µÄÄǸö³ÌÐòµÄÖªÃû¶È¡£ÎÒ°ÑÎÒµÄСվ½éÉܸøÎÒµÄËùÓеĺÃÓÑ£¬ÇëËûÃÇ¿Ú¿ÚÏà´«¡£µ«ÊÇÎÒȷʵдÕâƪÎÄÕÂÊÇûÓг´×÷Ä¿µÄµÄ¡£Ô­ÒòºÜ¼òµ¥£ºÎÒÐ ......

php ËõÂÔͼº¯Êý

function getThumbs($filename,$savepath,$d_w,$d_h,$b,$img_name)
{
    if($b)
    {
        $photourl = $savepath."/".$img_name;
    }else
    {
        $photourl = ......

tokyo tyrant ÔÚ php Éϲ»ÄÜ×Ô¶¯·´ÐòÁл¯µÄÎÊÌâ

Ç°Ò»ÕóÊÔÓà tokyo tyrant Åöµ½Ò»¸öÂé·³£¬
ÔÚphpÉÏÓÃmemcache½Ó¿Ú£¬È¡³öÊý¾ÝµÄʱºò£¬²»»á×Ô¶¯·´ÐòÁл¯¡£±ÈÈçÁËÒ»¸ö array(1,2,3,4,5)£¬³öÀ´¾ÍÊÇ 'a:5:{i:0;i:1;i:1;i:2;i:2;i:3;i:3;i:4;i:4;i:5;}' ÁË¡£
ÓÃ
Wireshark ¸ú×ÙÁËһϣ¬·¢Ïֺͱê×¼memcached·µ»ØµÄÊý¾ÝÀï²îÒ»¸ö×Ö½Ú¡£È¥¿´ÁËÏ memcached
ЭÒ飬·¢ÏÖÕâ¸ö×Ö½ÚÊǸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ