PHP½«Ãëת»¯³ÉСʱºÍ·Ö£¨¸ñʽΪ ** Сʱ ** ·Ö£©
/* Author: ÑîÓî <yangyu@sina.cn> */
//½«Ã루·Çʱ¼ä´Á£©×ª»¯³É ** Сʱ ** ·Ö
function sec2time($sec){
$sec = round($sec/60);
if ($sec >= 60){
$hour = floor($sec/60);
$min = $sec%60;
$res = $hour.' Сʱ ';
$min != 0 && $res .= $min.' ·Ö';
}else{
$res = $sec.' ·ÖÖÓ';
}
return $res;
}
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/yangyu112654374/archive/2009/12/18/5032370.aspx
Ïà¹ØÎĵµ£º
PHPÊÇÈõÀàÐÍÓïÑÔ¡£
»ù±¾Êý¾ÝÀàÐÍ£ºinteger¡¢string¡¢boolean¡¢float
¸´ºÏÊý¾ÝÀàÐÍ£ºarray¡¢object
»ù±¾Êý¾ÝÀàÐ;Ͳ»ËµÁË£¬ÏÂÃæ¿´Ò»¸öÊý×éÏà¹ØµÄһЩÀý×Ó¡£
$test1=array(1,2,3,4);//¶¨ÒåÁËÒ»¸ö°üº¬4¸öÊýµÄÊý×é
$test1=array("new1"=>1,"new2"=>2);//Á½¸ö±äÁ¿µÄÊý×é,array['new1']=1,array['new2']=2
¶àÎ ......
PHPÊÇÈõÀàÐÍÓïÑÔ¡£
»ù±¾Êý¾ÝÀàÐÍ£ºinteger¡¢string¡¢boolean¡¢float
¸´ºÏÊý¾ÝÀàÐÍ£ºarray¡¢object
»ù±¾Êý¾ÝÀàÐ;Ͳ»ËµÁË£¬ÏÂÃæ¿´Ò»¸öÊý×éÏà¹ØµÄһЩÀý×Ó¡£
$test1=array(1,2,3,4);//¶¨ÒåÁËÒ»¸ö°üº¬4¸öÊýµÄÊý×é
$test1=array("new1"=>1,"new2"=>2);//Á½¸ö±äÁ¿µÄÊý×é,array['new1']=1,array['new2']=2
¶ ......
php½Ì³Ì:·ÃÎÊPHPÀàÖгÉÔ±±äÁ¿»ò·½·¨
ÔÚ·ÃÎÊPHPÀàÖеijÉÔ±±äÁ¿»ò·½·¨Ê±£¬Èç¹û±»ÒýÓõıäÁ¿»òÕß·½·¨±»ÉùÃ÷³Éconst»òÕßstatic,ÄÇô¾Í±ØÐëʹÓòÙ×÷·û::,
·´Ö®Èç¹û±»ÒýÓõıäÁ¿»òÕß·½·¨Ã»Óб»ÉùÃ÷³Éconst»òÕßstatic,ÄÇô¾Í±ØÐëʹÓòÙ×÷·û->¡£
ÁíÍ⣬Èç¹û´ÓÀàµÄÄÚ²¿·ÃÎÊconst»òÕßstatic±äÁ¿»òÕß·½·¨,ÄÇô¾Í±ØÐëʹÓÃ×ÔÒýÓõ ......
ÓÐͬѧÐèҪʹÓÃSSL+FTPµÄ·½Ê½¼ÓÃÜ´«ÊäÎļþ¡£Ï£ÍûÎÒ¸ø·â×°Ò»¸ö¶«Î÷£¬ÐèÇó¾ÍÊÇ¿ÉÒÔÉÏ´«Îļþ£¨PUT£©ºÍÔ¶¶Ë¸ÄÃû£¨RENAME£©¾ÍÐС£
ÎÒ¿ªÊ¼ÒÔΪSSL+FTP = SFTP£¬ºóÀ´·¢ÏÖÕâ¸öÏë·¨ºÃÏñÊÇ´íÎóµÄ¡£SFTPÊÇÅÜÔÚSSHÐÒéÉÏÃæµÄFTP£¬¶øFTPs¾ÍÏñhttpsÒ»ÑùÊÇÅÜÔÚSSLÐÒéÉÏÃæµÄFTP¡£
ʾÀý³ÌÐòʹÓÃÁËftp_ssl_connectº¯Êý¡£Ô´´úÂëÈçÏ£º
#! / ......
PHP¶àÓû§ÔÚÏß¿Í·þϵͳ£¬ºǫ́ÓдúÂëÏâǶµ½ÄãµÄϵͳÖУ¬²»¹ýÕâ¸öÊÇÓ¢Îĵģ¬¸Ð¾õºÜʵÓ㬼ò½à£¬·½±ã£¬ÐèÒªµÄ¿ÉÒÔ×Ô¼ººº»¯£¬²»¾ÍÊǸÄÀïÃæµÄһЩÌáʾÐÅÏ¢ÂµØÖ·ÊÇ£ºhttp://mibew.org/
£¬Õâ¸öÊÇ¿ªÔ´µÄ£¬Ö§³Ö¶àÓû§Í¬Ê±ÔÚÏßÁªÏµ¿Í·þ£¬¿Í·þºǫ́¼°Ê±ÐÔºÜÇ¿£¬Ö»ÒªÓû§µã»÷ÔÚÏß¿Í·þ£¬ºǫ́¾ÍÓÐÌáʾ£¬¶øÇÒ¿ÉÒԲ鿴ÁÄÌì¼Ç¼£¬ºÜ¶àʵÓà ......