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

PHP ÃæÊÔÌâ¼°´ð°¸

¼òÊöÌâ(50·Ö)()
1¡¢ÓÃPHP´òÓ¡³öÇ°Ò»ÌìµÄʱ¼ä¸ñʽÊÇ2006-5-10 22:21:21(2·Ö)
echo date('Y-m-d H:i:s', strtotime('-1 day'));
»òÕß
$yesterday = time() - (24 * 60 * 60);
echo 'today:'.date('Y-m-d H:i:s')."\n";
echo 'yesterday:'. date('Y-m-d H:i:s', $yesterday)."\n";
2¡¢echo(),print(),print_r()µÄÇø±ð(3·Ö)
echoÊÇPHPÓï¾ä, printºÍprint_rÊǺ¯Êý,Óï¾äûÓзµ»ØÖµ,º¯Êý¿ÉÒÔÓзµ»ØÖµ(¼´±ãûÓÐÓÃ)
printÖ»ÄÜ´òÓ¡³ö¼òµ¥ÀàÐͱäÁ¿µÄÖµ(Èçint,string)
print_r¿ÉÒÔ´òÓ¡³ö¸´ÔÓÀàÐͱäÁ¿µÄÖµ(ÈçÊý×é,¶ÔÏó)
echo -- Êä³öÒ»¸ö»òÕ߶à¸ö×Ö·û´®
3¡¢Äܹ»Ê¹HTMLºÍPHP·ÖÀ뿪ʹÓõÄÄ£°å(1·Ö)
smarty£¬Heyes Template ClassµÈ
5¡¢Ê¹ÓÃÄÄЩ¹¤¾ß½øÐа汾¿ØÖÆ£¿(1·Ö)
CVSºÍSVN,SVNºÅ³ÆÏÂÒ»´úCVS,¹¦ÄÜÇ¿´ó,²»¹ýCVSÊÇÀÏÅÆ,ÊÐÕ¼Âʺܸß.ÎÒÒ»Ö±ÓÃSVN,ÌâÄ¿ÊÇÎÊÓÃʲô¹¤¾ßßÀ,Õâ¸ö¿ÉÄÜÐèÒªÕâô»Ø´ð:CVS Server on Apache×÷·þÎñ¶Ë,WinCVS×÷¿Í»§¶Ë;Subversion on Apache/DAV ×ö·þÎñ¶Ë,TortoiseSVN×ö¿Í»§¶Ë,»òÕßSubclipse×ö¿Í»§¶Ë.
6¡¢ÈçºÎʵÏÖ×Ö·û´®·­×ª£¿(3·Ö)
strrev()
»òÕß
$str = "abcdefg";
function strrevv($str)
{
$len=strlen($str);
$newstr = '';
for($i=$len;$i>=0;$i--)
{
$newstr .= $str{$i};
}
return $newstr;
}
$showstr = strrevv($str);
echo $showstr."<br>";
---------------------------------------------------------------
7¡¢ÓÅ»¯MYSQLÊý¾Ý¿âµÄ·½·¨¡£(4·Ö£¬¶àд¶àµÃ)
(1).Ñ¡È¡×îÊÊÓõÄ×Ö¶ÎÊôÐÔ,Ó¦¸Ã¾¡Á¿°Ñ×Ö¶ÎÉèÖÃΪNOT NULL£¬ÕâÑùÔÚ½«À´Ö´ÐвéѯµÄʱºò£¬Êý¾Ý¿â²»ÓÃÈ¥±È½ÏNULLÖµ¡£
(2).ʹÓÃÁ¬½Ó£¨JOIN£©À´´úÌæ×Ó²éѯ(Sub-Queries)
(3).ʹÓÃÁªºÏ(UNION)À´´úÌæÊÖ¶¯´´½¨µÄÁÙʱ±í
(4).¾¡Á¿ÉÙʹÓà LIKE ¹Ø¼ü×ÖºÍͨÅä·û
(5).ʹÓÃÊÂÎñºÍÍâ¼ü
»òÕß
(1).Êý¾Ý¿âÉè¼Æ·½Ãæ,ÕâÊÇDBAºÍArchitectµÄÔðÈÎ,Éè¼Æ½á¹¹Á¼ºÃµÄÊý¾Ý¿â,±ØÒªµÄʱºò,È¥Õý¹æ»¯(Ó¢ÎÄÊÇÕâ¸ö:denormalize,ÖÐÎÄ·­Òë³ÉɶÎÒ²»ÖªµÀ),ÔÊÐí²¿·ÖÊý¾ÝÈßÓà,±ÜÃâJOIN²Ù×÷,ÒÔÌá¸ß²éѯЧÂÊ
(2).ϵͳ¼Ü¹¹Éè¼Æ·½Ãæ,±íÉ¢ÁÐ,°Ñº£Á¿Êý¾ÝÉ¢Áе½¼¸¸ö²»Í¬µÄ±íÀïÃæ.¿ìÂý±í,¿ì±íÖ»Áô×îÐÂÊý¾Ý,Âý±íÊÇÀúÊ·´æµµ.¼¯Èº,Ö÷·þÎñÆ÷Read & write,´Ó·þÎñÆ÷read only,»òÕßN̨·þÎñÆ÷,¸÷»úÆ÷»¥ÎªMaster
(3).(1)ºÍ(2)³¬Ô½PHP ProgrammerµÄÒªÇóÁË,»á¸üºÃ,²»»áû¹Øϵ.¼ì²éÓÐûÓÐÉÙ¼ÓË÷Òý
(4).д¸ßЧµÄSQLÓï¾ä,¿´¿´ÓÐûÓÐдµÍЧµÄSQLÓï¾ä,±ÈÈçÉú³ÉµÑ¿¨¶û»ýµÄÈ«Á¬½Ó°¡,´ó


Ïà¹ØÎĵµ£º

php soap³õʶ

´ò¿ªphp.iniµÄsoapÀ©Õ¹
server.php
<?php
class math{

/**
* ¼Ó·¨
*
* @param integer $a
* @param integer $b
* @return integer
*
*/
public function add($a, $b){

return $a + $b;
}
}
$server = new SoapServer('http://localhost/math.wsdl',array('soap_version' =& ......

¡¾PHPϵÁн̡̳¿(5)——PHPµÄ³£Á¿

¡¾PHPϵÁн̡̳¿(4)½²ÊöÁËPHPµÄ±äÁ¿£ºhttp://blog.csdn.net/rocket5725/archive/2010/01/08/5159704.aspx
±¾½ÚÖ÷Òª½éÉÜPHPÖеij£Á¿£¬Ö÷Òª°üÀ¨ÆäÓï·¨ºÍÔ¤¶¨Òå³£Á¿µÄ½éÉÜ¡£
³£Á¿ÊÇÒ»¸ö¼òµ¥ÖµµÄ±êʶ·û£¨Ãû×Ö£©¡£ÈçͬÆäÃû³ÆËù°µÊ¾µÄ£¬Ôڽű¾Ö´ÐÐÆÚ¼ä¸ÃÖµ²»Äܸı䣨³ýÁËËùνµÄħÊõ³£Á¿£¬ËüÃÇÆäʵ²»Êdz£Á¿£©¡£³£Á¿Ä¬ÈÏΪ´óСдà ......

¡¾PHPϵÁн̡̳¿(4)——PHPµÄ±äÁ¿

ºÜÈÙÐÒÉÏƪÎÄÕ±»°æÖ÷ÍƼöµ½Ê×Ò³ÁË£¬ÐÄÀïËãÊǼ¤¶¯ÁËÒ»°Ñ£¬¼ÌÐøŬÁ¦Ñ§Ï°Öаɡ£±¾ÕÂÖ÷Òª½éÉÜPHPÖеıäÁ¿¡£Ö÷Òª°üÀ¨£ºÔ¤¶¨Òå±äÁ¿¡¢±äÁ¿·¶Î§¡¢¿É±ä±äÁ¿ÒÔ¼°PHPµÄÍⲿ±äÁ¿µÈ¡£
Ò»¡¢»ù´¡ÖªÊ¶
PHP ÖÐÒ»¸öÃÀÔª·ûºÅºóÃæ¸úÉÏÒ»¸ö±äÁ¿Ãû³Æ£¬¼´±íʾһ¸ö±äÁ¿¡£±äÁ¿µÄÃû³ÆÊǶԴóСдÃô¸ÐµÄ¡£
±äÁ¿ÃûÓë PHP ÖÐÆäËüµÄ±êÇ©Ò»Ñù×ñÑ­ÏàͬµÄ ......

linux mysql php apache ÅäÖð²×°

 ¡¡ÎÒÃÇ°ÑÏÂÔصÄÈý¸öÈí¼þ°ü·Åµ½/var/localĿ¼Ï£¨ÕâÊDZÊÕ߸öÈ˵ÄÏ°¹ß£©£¬ËüÃǶ¼ÊÇtar.gz°ü£¬¿ÉÒÔÓÃÃüÁîtar -xzpvf °üÃû£¬°ÑËüÃÇÔÚµ±Ç°Ä¿Â¼£¨/var/local/£©Öн⿪£º
cd /var/local
tar -xzpvf mysql-4.0.15.tar.gz
tar -xzpvf php-4.3.3.tar.gz
tar -xzpvf httpd-2.0.47.tar.gz
¡¡¡¡½â°üºó¿ÉÒÔ¿ªÊ¼½øÈëÕýʽ°²×°¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ