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

PHPÍøÕ¾¿ª·¢·½°¸

http://www.phpli.com/tuto/viewarticle.php?columns=tutorial&id=493
Ò»¡¢¿ª·¢³ÉÔ±
a)ÏîÄ¿Ö÷¹Ü
b)Ò³ÃæÃÀ¹¤
c)Ò³Ã濪·¢
d)·þÎñ¶Ë³ÌÐò¿ª·¢
e)ϵͳÓëÊý¾Ý¹ÜÀí
f)²âÊÔÓë°æ±¾¿ØÖÆ
¶þ¡¢ ÍøÕ¾×鿪·¢¼òÃ÷Á÷³Ì
Èý¡¢ ¿ª·¢¹¤¾ßÓë»·¾³
a)·þÎñÆ÷ÅäÖÃ
i. WEB·þÎñÆ÷£º FreeBSD6.1+Apache2.0+PHP5.0£¬SVN°æ±¾¿ØÖÆ·þÎñ(½ö²âÊÔ»ú)¡£
ii.Êý¾Ý¿â·þÎñÆ÷£º WIN2003 server+SQL server 2000+MySQL5.0£¬CLUSTERED SERVER ¼¯Èº·þÎñ£¬Óʼþ·þÎñÆ÷¡£
iii. 100M/1000M½»»»»ú
b) ¿ª·¢¹¤¾ß
i. ǰ̨£º Macromedia flash 8.0¡¢Macromedia Dreamweaver 8.0¡¢Adobe photoshop CS
ii. ºǫ́£º Zend Studio 5.2¡¢SQL Server Enterprise Manager¡¢PhpMyAdmin
ËÄ¡¢ ¼¼Êõ¹æÔò
a) ä¯ÀÀÆ÷¼æÈݲßÂÔ£º ¼æÈÝIE5.0ÒÔÉÏ°æ±¾£¬Í¬Ê±¼æÈÝFireFOX2.0ÒÔÉÏä¯ÀÀÆ÷¡£
b) ËÑË÷ÒýÇæÓÅ»¯£º ×ÅÖØÕë¶Ôbaidu¡¢Google¡¢YahooËÑË÷ÓÅ»¯£¬ÖÆ×÷ÇåÎúÃ÷È·µÄÍøÕ¾µØͼ¡£
c) ×Ö·û±àÂë¹æÔò£ºÖÐÎÄÍøÕ¾Ò»ÂʲÉÓÃGB2312×Ö·û±ê×¼¡£[Ä¿Ç°ÎÒͳһʹÓÃUTF-8±àÂë°üÀ¨ÁËÊý¾Ý¿âµÄÎļþÄÚÈݵıàÂëͳһ]
d) ÎļþÓëÎļþ¼ÐÃüÃû£º Ϊ¼æÈÝwin32Óëunixϵͳ£¬Ò»ÂʲÉÓÃСд×ÖĸÃüÃû¡£
£¨Í³Ò»È«Õ¾µÄÎļþ¼ÐÓëÎļþµÄÃüÃû¶¼Ê¹ÓÃСдµÄÐÎʽ´¦Àí¡£ÕâÑù²»»á³öÏÖÎÊÌâÁË£¡£©
e) ¹«¹²ÎļþÃüÃû¹æÔò£º
i. ĬÈÏÊ×Ò³£º index.htm¡¢index.html¡¢index.php
ii. Ö÷CSSÎļþ£º style.css
iii. Ö÷JSÎļþ£º main.js
iv. Ö÷³ÌÐòÅäÖÃÎļþ£ºconfig.php
f) ¹«¹²ÎļþĿ¼ͳһÃüÃû
i. ͼƬĿ¼£º /images »òÕß /pic
ii. CSSÑùʽĿ¼£º /css
iii. JS½Å±¾³ÌÐòĿ¼£º/js
iv.Ä£°åÎļþĿ¼£º/tpl
v. Àà»òÕß×é¼þĿ¼£º/class »òÕß /lib
g) Ò³Ãæ½Å±¾¹æ·¶£º ͳһ²ÉÓÃJavaScript
h)´úÂëÖеÄÀà¡¢º¯Êý¡¢±äÁ¿Ãû£ºÍ³Ò»Ê¹ÓýüËÆÓ¢Îĵ¥´ÊÃüÃû£¬È磺DefaultClass »òÕß default_class
i) ´úÂë×¢Ê͹æÔò£ºËùÓгÌÐòÖеĺ¯Êý»òÕß¹ý³Ì±ØÐë¼ÓÈ·ÇеÄ×¢ÊÍ¡£
j) Êý¾Ý¿âÏà¹Ø¹æÔò
i. Êý¾Ý±íÓë×Ö¶ÎÃüÃû¹æÔò£º È«²¿Ð¡Ð´×ÖĸÃüÃû£¬²¢¹éÀàÃüÃûǰ׺£¬È磺Óû§±í×飬user_passport¡¢user_info¡¢user_service….
ii. ÈÕÆÚÀàÐÍ×ֶΣº ͳһʹÓÃunixʱ¼ä´Á£¬char(12)
iii. Ö÷¹Ø¼ü×ÖÃüÃû£º ËùÓбí±ØÐ뽨Á¢ÒÔidÃüÃûµÄÖ÷¼ü¡£
k) Ä£°å×é¼þ¹æÔò£ºÍ³Ò»Ê¹ÓüæÈÝ°æ±¾µÄSmarty£¬Í³Ò»»º´æĿ¼£¬±ãÓÚUnixÏÂȨÏÞ¿ØÖÆ¡£
£¨ÉèÖÃÈ«²¿µÄ¿ÉдÎļþͳһ·ÅÈëµ½Ò»¸öĿ¼ÏÂÃæÈ¥×ö³É»º´æĿ¼Óã©
l) Êý¾Ý¿âÐéÄâ²ã£º ͳһʹÓÃAdodb »ò Pdo£¬SQLÓï¾äÒª¼æÈÝÏÖÓÐÖ÷Á÷Êý¾Ý¿â¹æÔò¡£
m)¹¤³§Ä£Ê½¿ª


Ïà¹ØÎĵµ£º

php——includeÓï¾ä


Ô­ÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/02/02/1-9/
 
PHPÖÐIncludeÓï¾äÔÚÓ÷¨ÉϺÍrequireÓï¾ä»ù±¾Ïàͬ£¬µ«ÊÇËûÃÇ»¹´æÔÚÁ½µã²îÒ죺
   »úÖƲ»Í¬
 RequireÓï¾äÔÚ½øÐÐÎļþ°üº¬Ê±£¬²»¹ÜÕâÌõrequireÓï¾äÊÇ·ñ±»ÔËÐУ¬¶¼»á½«±»°üº¬´úÂëÖеÄÎļþ°üº¬½øÀ´¡£
 IncludeÓï¾äÔÚ½øÐÐÎļþ°ü ......

¼¸¸öʵÓñãÀûµÄPHP´úÂë

1. PHP¿ÉÔĶÁËæ»ú×Ö·û´®
´Ë´úÂ뽫´´½¨Ò»¸ö¿ÉÔĶÁµÄ×Ö·û´®£¬Ê¹Æä¸ü½Ó½ü´ÊµäÖеĵ¥´Ê£¬ÊµÓÃÇÒ¾ßÓÐÃÜÂëÑéÖ¤¹¦ÄÜ¡£
/**************
*@length - length of random string (must be a multiple of 2)
**************/
function readable_random_string($length = 6){
$conso=array("b","c","d& ......

phpЧÂʸßд·¨ (ת)

0¡¢Óõ¥ÒýºÅ´úÌæË«ÒýºÅÀ´°üº¬×Ö·û´®£¬ÕâÑù×ö»á¸ü¿ìһЩ¡£ÒòΪPHP»áÔÚË«ÒýºÅ°üΧµÄ×Ö·û´®ÖÐËÑÑ°±äÁ¿£¬µ¥ÒýºÅÔò²»»á£¬×¢Ò⣺ֻÓÐechoÄÜÕâô×ö£¬ËüÊÇÒ»ÖÖ¿ÉÒ԰Ѷà¸ö×Ö·û´®µ±×÷²ÎÊýµÄ“º¯Êý”£¨Òë×¢£ºPHPÊÖ²áÖÐ˵echoÊÇÓïÑԽṹ£¬²»ÊÇÕæÕýµÄº¯Êý£¬¹Ê°Ñº¯Êý¼ÓÉÏÁËË«ÒýºÅ£©¡£
1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿ ......

php static ¹Ø¼ü×Ö

±¾ÎÄת×Ô http://www.phpchina.com/html/31/35331-12207.html
  PHPÀï±ßÓÃStatic¹Ø¼ü×ÖÀ´¶¨Ò徲̬ÊôÐԺͷ½·¨.
ʵÀýÒ»£º¾²Ì¬ÊôÐÔµÄÒýÓ÷½·¨
<?php
/*
*author:ajax123
*qq:283400245
*/
class person{
       static$name="ajax123";//staticÉùÃ÷¾²Ì¬ÊôÐÔ
   ......

ÎÒµÄ2009Ä깤×÷¾­ÑéС½á(php³ÌÐòÔ±)

תÑÛÓÖÊÇÒ»Äê¹ýÈ¥ÁË£¬Ëƺõ£¬×î½üÎåÁùÄêÀ´£¬Ò»Ö±¶¼¹ýµÃ²»ÄÇô˳Àû£¬½ñÄ껹ËãÊDz»´í£¬ÖÁÉÙ£¬ÔÚ¿Í»§¡¢ÀÏ°åºÍͬʵİïÖúÏ£¬Ò»ÄêµÄ¹¤×÷£¬ÖÕÓÚÔÚÄêÇ°ÊÕβÁË¡£ÔÚ´ËС½áһϣ¬ÎüȡһЩ½Ìѵ£¬ÒÔÃâÀ´ÄêÖØ·¸ÏàͬµÄ´íÎó¡£
1¡¢×öÁËÒ»¸ö×îÕýÈ·µÄÑ¡Ôñ£º¹Ò¿¿Ò»¼ÒÈí¼þ¹«Ë¾×ö³ÌÐò¡£×ö³ÌÐòºÍ×öÒµÎñ£¬ÊDz»Ó¦¸Ãͬһ¸öÈ˽øÐеģ¬¾ÍËã¿Í»§ÊÇÖ÷¶¯É ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ