phpÏîÄ¿¿ò¼ÜÉè¼Æ
Ò»¡¢¸ÅÊö
ÒòΪ×î½üСÏîÄ¿±È½Ï¶à£¬¶øÇÒÏîÄ¿Ö®¼äµÄÖظ´¶ÈÓֱȽϴó£¬ËùÒÔ¸ãÁËÒ»¸öÏîÄ¿¿ò¼ÜËƵĶ«Î÷£¬±ß×ö±ßÐ޸ġ£
Ä¿Ç°ÀïÃæÒѾÈÝÄÉÁ˲»ÉÙ¼¸¸öÏîÄ¿£¬Ò²¸ãÁËЩÀàËÆ»ù´¡¹¹¼þÒ»ÑùµÄ¶«Î÷£º
flykobe@105 quick $ ls -FX
inc/ jzj/ m2/ mstatic/ t/ template/ webtools/ robots.txt*
default/ jbft_v2/ m/ modsky/ nba/ env_setting.inc* dispatch.php* clean.sh*
×ÓÏîÄ¿µÄ½á¹¹£º
flykobe@105 quick $ ls modsky/ -FX
control/ inc/ layout/ view/
ËùÓеÄURL¶¼¾¹ýdispatch.phpµÄ·ÓÉ£¬¾¹ýÒ»¶¨µÄ×Ö·û´®´¦Àí¹æÔò£¬Ö¸¶¨µ½×ÓÏîÄ¿controlÖеÄij¸öÎļþÉÏÈ¥¡£
¸ùĿ¼Ï£¬ÓÐһЩ¹«¹²µÄĿ¼£º
incÊÇÈ«ÌåÏîÄ¿¹«Óõĺ¯Êý¿â
mstaticÊÇһЩÁÙʱµÄcss¡¢jsÎļþÉú³ÉºóµÄ´æ·ÅλÖÃ
tÊDzâÊÔĿ¼
templateÊǹ«¹²Ä£¿é¿â
defaultÊÇһЩĬÈÏ·¾¶£¬ÆäÖаüÀ¨ÁËÏîÄ¿¹«¹²µÄajax½Ó¿Ú£¨µ±È»£¬Ã¿¸öÏîÄ¿Ò²¿ÉÒÔ¿ª·¢×Ô¼ºµÄajax½Ó¿Ú£©
ÁíÍ⣬env_setting.incÊÇÕû¸öÏîÄ¿µÄÅäÖÃÎļþ¡£
¶þ¡¢dispatch˵Ã÷
¿ªÊ¼µÄÏë·¨ÊÇ£¬Ò»¸ö´óÏîĿĿ¼£¬Ò»¸öÓòÃû£¬ÏÂÃæ¿¿²»Í¬µÄmoduleÃû³Æ£¬À´Çø·Ö²»Í¬µÄ×ÓÏîÄ¿£¬ËùÒÔURL¸ñʽ¾ÍÊÇ£º
test.mydomain.cn/jzj/
test.mydomain.cn/modsky/
...
£¨µ«ÊÇ£¬ºóÀ´·¢ÏÖÔËÓªµÄÐèÇó×ÜÊÇÔÚ±äµÄ£¬ËûÃÇÐèÒª²»Í¬µÄÓòÃû£¬ËùÒÔ¾ÍÔÚapacheµÄÅäÖÃÖÐ×öÁËalias£¬»¹¶¼ÊÇÖ¸Ïò¸ùĿ¼¡£µ«ÊÇÔì³ÉµÄºó¹û¾ÍÊÇ£¬²»Í¬µÄÓòÃû£¬Í¨¹ý²»Í¬µÄ¶þ¼¶Ä¿Â¼Ãû³ÆµÈ£¬¾Í¿ÉÒÔ·ÃÎʵ½Í¬ÑùµÄÒ³Ã棬ÕâÑù£¬²»¹ÜÊǶÔÓÚseo£¬»¹ÊÇÂß¼ÉÏ£¬¶¼ÊǺܲ»ºÃµÄ£¡µÈÐݼٻØÀ´£¬ÒªÕûÀíÕû¸ö£¡£©
dispatchÖУ¬¶Ôÿ¸ö¶þ¼¶Ä¿Â¼£¬¶¼×öÁËuriºÍmoduleÖ®¼äµÄÓ³É䣬ÕâÑùÿ´ÎÌí¼ÓÒ»¸öÐÂÏîÄ¿£¬¶¼ÐèÒªÌí¼Ó»òÕßÐÞ¸ÄÕâ¸öÓ³É䣬ËäÈ»Ôö¼ÓÁ˹¤×÷Á¿£¬µ«ÊÇÒ²¿ØÖÆÁËÎÞЧ·ÃÎÊ£¬ÒÔ¼°¿ÉÒԺܷ½±ãµÄ×öuriµÄÖØÐÂÖ¸Ïò¡£±ÈÈ磬ÎÒ×öÁËÒ»¸ö×ÓÏîÄ¿m£¬Ö®ºóÐèÒª´ó¸Ä°æ£¬ÄÇô¾Í¿ÉÒÔн¨×ÓÏîÄ¿m2£¬È»ºó¸Ä°æÍê³ÉÖ®ºó£¬°Ñ·ÃÎÊmµÄuriÖ¸Ïòµ½m2¡£
Èý¡¢template¹«ÓÃÄ£¿é
ʹÓÃÁËÃæÏò¶ÔÏóµÄÉè¼Æ·½·¨¡£Ö÷ҪĿµÄÊÇ£¬ÓÉÓÚÍøÕ¾¿ª·¢ÖУ¬´æÔÚ´óÁ¿µÄÖظ´¹¤×÷£¬³ýÁËphp´úÂ룬»¹ÓÐhtml¡¢css¡¢jsµÈ£¬ËùÒÔ£¬Òª°ÑÕâЩȫ½áºÏÆðÀ´£¬Éú³ÉÒ»¸öÒ»¸öµÄСģ¿é£¬Ê¹ÓõÄʱºò£¬Ò»ÐдúÂë¾Í¸ã¶¨¡£
»ùÀàTpBase£¬½«¹¹Ôì·½·¨¶¨ÒåΪprotectedµÄ£¬Ê¹ÓÃÁËRegisterÀ࣬implements Á˽ӿÚTpInterface£¬¸Ã½Ó¿
Ïà¹ØÎĵµ£º
<?php
$conn = "what's the fucking";
?>
<mce:script type="text/javascript"><!--
var innn = "<?php echo $conn ?>";
document.write(innn);
// --></mce:script>
phpºÍJavaScriptµÄ±äÁ¿²»ÄÜͨÓ㬵«µ±ÎÒÃÇÐèÒªÔÚÒ»¸öÒ³ÃæʹÓÃͬһ¸ö±äÁ¿Ê±£¬¿ÉÒÔ ......
ת×Ô£ºhttp://www.chinaz.com/news/Visit/091Y21R2009.html
Rasmus Lerdorf¿ÉÄÜÊǸñÁêÀ¼×îÖøÃûµÄµçÄÔÅ£ÈË£¬Ëû1995Äê´´½¨ÁËPHP½Å±¾ÓïÑÔ£¬²¢³É¹¦Ó¦Óõ½ËûµÄÍøÕ¾ÖУ¬ÔÚËûµÄÒ»ÊÖÔÔÅàÏ£¬PHPÒѱä³ÉÒ»¸öÇ¿´óµÄ£¬ÍêÈ«³ÉÊìµÄÓïÑÔ£¬Ä¿Ç°ÊÀ½ç¸÷µØÒÑÓÐÊý°ÙÍòPHPÓ¦Óð¸Àý¡£
PHP´´Ê¼ÈËRasmus Lerdorf
Linux FormatÔÓÖ¾¶ÔRasmus Lerd ......
ÔÚʵ¼ÊµÄ³ÌÐò¿ª·¢ÖУ¬Ö´ÐÐ×Ö·û´®Ìæ»»²Ù×÷ÊÇÒ»¼þ·Ç³£¾³£µÄÊ£¬¶Ôstr_replaceº¯ÊýµÄʵÓÃÒ²»á·Ç³£Æµ·±¡£
Õâ¶Îʱ¼äÔÚ¿´¡¶PHPºÍMySQL Web¿ª·¢¡·Ò»Êé¿´µ½str_replace½²½â£¬Ò»¶ÎСÌáʾдµ½£º¿ÉÒÔΪstr_replaceµÄÈý¸ö¶¼Ê¹ÓÃÊý×é´«È룬µ«½²½â±È½Ï¼òµ¥£¬ÓÚÊǾö¶¨×Ô¼º ......
Ç°ÑÔ
ÕýÈç´ó¼ÒÒ»Ñù£¬µ±ÎÒ¾õµÃҪѧϰһÖÖеĶ«Î÷µÄʱºò£¬×ÜÊÇÓÐÒ»ÖÖ¾Þ´óµÄѹÁ¦£®Ê×ÏÈÒ»¸öÎÊÌâÊÇ£ºÊÇ·ñ¿ÉÒÔѧ»á£®ÁíÒ»¸öÎÊÌâÔòÊÇ£ºÕâ¸öеÄ֪ʶÊÇ·ñÄܹ»ÕÒµ½Ò»·Ý¹¤×÷£®Èç¹ûÄ㻹ÊÇÒ»ÃûѧÉú£¬ÄÇôÄãÓ¦¸Ã¸Ðµ½¸ßÐË£¬ÒòΪѧУÀïµÄÉú»î²»ÊÇÓÉÄã×Ô¼ºÌṩ±£Õϵģ¬ËùÒÔ²»Òª¿¼ÂÇα£ÎÊÌ⣻µ«ÊÇ×Ô´ÓѧУ³öÀ´ºó£¬²ÅÖªµÀÉú»îÊÇʲô×Ìζ ......
ÔÎÄÁ´½Ó£ºhttp://webdev.csdn.net/page/58438f5e-704e-4e80-bdbd-7d06e8ecceb9#
40 Tips for optimizing your php Code
ÔÎĵØÖ·£ºhttp://reinholdweber.com/?p=3
Ó¢ÎÄ°æȨ¹éReinhold WeberËùÓУ¬ÖÐÒëÎÄ×÷Õßyangyang£¨aka davidkoree£©¡£Ë«Óï°æ¿ÉÓÃÓÚ·ÇÉÌÒµ´«²¥£¬µ«Ðë×¢Ã÷Ó¢ÎÄ°æ×÷Õß¡¢°æȨÐÅÏ¢£¬ÒÔ¼°ÖÐÒëÎÄ×÷Õß¡£·ÒëË® ......