php±í¸ñÊä³ö
<?
//ÐÂÎÅÀà±ð
$query_cat="select * from $dbtable1";
$result_cat=mysql_query($query_cat) or die("<mce:script type="text/javascript"><!--
alert('Ìáʾ£º²éÑ°ÐÂÎÅÀà±ðʧ°Ü£¬Çë¸ú¹ÜÀíÔ±ÁªÏµ')
// --></mce:script>");
if(!$result_cat)
{
echo "ûÓÐÀà±ð";
}
else
{
while($row_cat=mysql_fetch_array($result_cat))
{
echo "<table width='100%' border='0' cellspacing='1' cellpadding='1' bgcolor=#000000>";
echo "<tr>";
echo "<td bgcolor=#F1DAB1>";
echo" == $row_cat[title] £½£½</td></tr>";
echo "<tr><td bgcolor=#fef7ed>";
//±¾Àà±ðÐÂÎűêÌâ
$query_news="select id,title,addtime from $dbtable2 where cateid='$row_cat[id]' order by addtime desc";
$result_news=mysql_query($query_news) or die("<mce:script type="text/javascript"><!--
alert('Ìáʾ£º²éÑ°ÐÂÎűêÌâʧ°Ü£¬Çë¸ú¹ÜÀíÔ±ÁªÏµ')
// --></mce:script>");
if ($result_news)
{
echo "<ul>";
while ($row_news=mysql_fetch_array($result_news))
{
echo "<li><a targer='_self' href="\" mce_href="\""shownews.php?id=$row_news[id]\">$row_news[title](".DateTime("Y-m-d "."H:i",$row_news['addtime']).")</a>";
}
echo"</ul>";
echo"<p align=right>";
echo"<a target='_self' href="\" mce_href="\""category.php?cate=$row_cat[id]\">¸ü¶àÐÂÎÅ..</a></p>";
Ïà¹ØÎĵµ£º
ÔÌù£ºhttp://www.haw-haw.org/node/150
ÓÃÀ´ÔÚphp³ÌÐòÀï·½±ãµÄÁ¬µ½Ô¶³ÌÖ÷»ú
Ö´ÐгÌÐò
²¢È¡»Ø½á¹û
Ê×ÏÈ£¬ÏµÍ³ÐèÒªÒѾװÓÐopensslºÍopenssl-devel°ü
rpm -qa | grep openssl
È»ºó£¬°²×°libssh2
µ±ÏÂÀ´Ô´´úÂëºó
./configure && make all install
ÔÙÈ»ºó£¬°²×°PECL/ssh2
¿ÉÒÔÓÃÃüÁîpear install ssh2
(ÑÛÇ ......
̸µ½ÍøÒ³ËÑË÷ÒýÇæʱ£¬´ó¶àÊýÈ˶¼»áÏëµ½ÑÅ»¢¡£µÄÈ·£¬ÑÅ»¢¿ª´´ÁËÒ»¸ö»¥ÁªÍøÂçµÄËÑË÷ʱ´ú¡£È»¶ø£¬ÑÅ»¢Ä¿Ç°ÓÃÓÚËÑË÷ÍøÒ³µÄ¼¼ÊõÈ´²¢·Ç¸Ã¹«Ë¾ÔÏÈ×Ô¼º¿ª·¢µÄ¡£2000Äê8Ô£¬ÑÅ»¢²ÉÓÃÁËGoogle£¨www.google.com£©Õâ¼ÒÓÉ˹̹¸£´óѧѧÉú´´½¨µÄ·çÏÕ¹«Ë¾µÄ¼¼Êõ¡£ÀíÓɷdz£¼òµ¥£¬GoogleµÄËÑË÷ÒýÇæ±ÈÑÅ»¢ÏÈǰʹÓÃµÄ ......
PHP¹ØÓÚʱ¼äÈÕÆڵĴ¦Àí²»ÊǺܹ淶£¬¼òµ¥¾Í¼òµ¥ÁË£¬¾ÍÊDz»ÖªµÀÊäÈëµÄ×Ö·û´®ÊÇ·ñÄܹ»Õýȷת»¯ÎªÐèÒªµÄDateTimeÀàÐÍ¡£
ÃæÏò¶ÔÏóµÄPHPÓ¦¸ÃʹÓÃDateTimeÀàÀ´×östringºÍdateTimeµÄת»»
´Ó×Ö·û´®µ½Ê±¼äÀàÐÍ
DateTime::createfromFormat(‘m/d/Y H:i','03/01/2008 02:20');
$totalPrice=0.0;
´ÓDateTimeµ½×Ö·û´®
$ ......
Ç°Ò»ÕóдÁËÒ»¸ö¼òµ¥µÄÀ࣬½«session´æÈëÊý¾Ý¿â£¬µ±session_destroy()ʱ»á½«¿âÖеÄsession¼Ç¼ɾ³ý£¬¶ø¹ýÁËmaxlifetimeʱsession¼Ç¼ȴ»¹ÔÚ£¬µ±Ê±ºÜ²»Àí½â¡£
½ñÌìÓÖ¿´ÁËÏÂphp.ini£¬ÕÒµ½Á˹ØÓÚsessionµÄÅäÖã¬Ã÷°×ÁËÔÒò¡£
; Define the probability that the 'garbage collection' process is started
; on every sessi ......
<%
rs.pagesize=14
page=cint(Request.QueryString("page"))
if page<1 then
page=1
elseif page>rs.pagecount then
page=rs.pagecount
end if
rs.AbsolutePage=page
IF rs.BOF and rs.eof then
Response.Write("<br><br>±¾Õ¾ÔÝÎÞÈÕÖ¾¼Ç¼£¡£¡<br><br>")
response.end
end if ......