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

PHPʵÏÖ¼òµ¥MVC¹¹Ïë


< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
if (text && text.length > 300) {
text = text + "\r\n\n±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£º" + location.href;
clipboardData.setData("text", text);
}
}, 100);
}
}

http://blog.csdn.net/xiaoyu9805119/archive/2007/10/15/1825803.aspx
  
¶ÔÓÚÏÖÔÚµÄÓ¦ÓóÌÐòÀ´Ëµ£¬´Ó»ù´¡µÄдÆðµÄʱ´úÒѾ­Ô¶È¥ÁË£¬¸ü¶àµÄÊǴӼܹ¹£¬¿ÉÀ©Õ¹ÐÔÒÔ¼°¿Éά»¤ÐÔÉÏÀ´¿¼ÂÇÁË¡£Òò´ËÒ²²úÉúÁ˺ܶàµÄ¿ò¼Ü£¬ÓÈÆäÔÚ¿ªÔ´ÊÀ½çËãµÄ
ÉÏÊÇ°Ù»¨Æë·ÅµÄ¾°Ï󡣸÷ÖÖ¸÷ÑùµÄģʽºÍ¼Ü¹¹µ½´¦¶¼ÊÇ£¬¶ÔÓÚÏÖÔÚµÄweb¿ª·¢À´Ëµ£¬mvc£¨Model-View-Controller£©»¹ÊǺܳ£ÓÃʹÓõÄ
Ò»¸öģʽ¡£ºÜ¶à¿ò¼Ü¶¼ÊÇΧÈÆÕâһģʽ£¬±ÈÈçjavaµÄstruts£¬»¹ÓÐspringÒ²Ìṩ×Ô¼ºµÄmvc¡£ÕâÀï²»½éÉÜjavaµÄ£¬Ö»ÊÇÓÃPHPʵÏÖһЩ¼ò
µ¥mvcµÄ¹¹Ï룬Ïë·¨À´×ÔÓÚzend framework£¨³ö×ÔÓÚ¹Ù·½php¿ª·¢ÍŶӣ©£¬ÓÐÐËȤµÄÅóÓÑ¿ÉÒÔÈ¥
http://framework.zend.com/ ¿´¿´¡£
 
´ó¸ÅµÄÏë·¨ÈçÏ£¬°ÑurlÇëÇóÓ³É䵽ij¸öÀàµÄij¸ö·½·¨ÉÏÈ¥£¬±ÈÈçhttp://localhost/book/view/£¬¶ÔÓ¦µ½
BookControllerµÄviewAction·½·¨¡£Ê×ÏÈÒªÔÚ¹¤³ÌĿ¼Ï½¨.htaccess£¬ÀïÃæʵÏÖurlÖض¨Ïò£¬ÕâÀïÐèÒªurl-
rewriteÄ£¿é£¬Ã»ÓеĻ°¾ÍÐèÒª×ÔÐбàÒëÏ¡£
    RewriteEngine on # ¿ªÆôrewrite
    RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php # °Ñ²»ÊÇÕâЩurlÇëÇóÖض¨Ïòµ½index.php
ÔÚindex.php
Àï¿ÉÒÔͨ¹ý$_SERVER['REQUEST_URI']À´»ñÈ¡urlÇëÇ󣬿ÉÒÔͨ¹ý·Ö¸î/×Ö·ûÀ´»ñÈ¡ËùÓÐϸ½Ú¡£Èç¹ûûÓÐrewriteÄ£¿éÕâÀïÒ²¿ÉÒÔ
ͨ¹ý·Ö¸î$_SERVER['PATH_INFO']À´ÊµÏÖ£¬ÉÏÃæµÄurlÒ²»»³Éhttp:
//localhost/index.php/book/view/¡£²¿·Ö´úÂë¿ÉÒԲο¼ÈçÏ£º
    // ͨ¹ýÕýÔòÀ´·Ö¸î×Ö·û£


Ïà¹ØÎĵµ£º

LinuxÏÂÈí¼þ¡¢PHPºÍPerlµÄÄ£¿éµÈ¶¼ÊµÏÖÁË×Ô¶¯°²×°

LinuxÏÂÈí¼þ¡¢PHPºÍPerlµÄÄ£¿éµÈ¶¼ÊµÏÖÁË×Ô¶¯°²×°£¬ÕæµÄºÜ·½±ã£¬±¾Îļòµ¥½éÉÜһϡ£
linuxÏ¿ÉÒÔʹÓÃyum¹¤¾ß£¬RedhatÏÂ×Ô¶¯´øÓУº
yum list php*   //¿ÉÒԲ鿴phpµÄÏà¹ØÄ£¿é
yum install php //°²×°phpÕâ¸öÄ£¿é
phpÄ£¿éµÄ×Ô¶¯°²×°(ÀûÓÃpecl.php.netºÍpear.php.netÔÚÏß°²×°)£º
ÀûÓÃpearºÍpecl¹¤¾ß£¬Ê×ÏÈÐèÒª° ......

[ת] Óà SWIG ¹¹½¨ PHP À©Õ¹

×÷ÕߣºMartin Streicher, Èí¼þ¿ª·¢ÈËÔ±, Pixel, Byte, and Comma
¾¡¹Ü±àдһ¸ö PHP À©Õ¹²¢²»ÊǺÜÀ§ÄÑ£¬¶ø SWIG µÄÈ·½øÒ»²½¼ò»¯ÁËÕâÏîÈÎÎñ£¬ÕâÖ÷ÒªÊÇÒòΪËü×Ô¶¯»¯Á˽áºÏ PHP Óë C »ò C++ ËùÐèµÄ¹¤×÷¡£Èô¸ø¶¨¶ÔÒ»¸öº¯ÊýµÄÃè»æ — º¯ÊýµÄÃû³Æ¼°ÆäÐβΠ— SWIG ¾Í»áÉú³ÉÒ»¸ö°ü×°³ÌÐòÀ´½« PHP ÓëµÍ²ã´úÂëÁ¬½ÓÆðÀ´¡£ ......

PHP³£ÓÃÄÚÖó£Á¿

ϵͳÉè¼Æ´ÓÒ»¿ªÊ¼¾ÍÓ¦¸Ã¿¼ÂDz»Í¬Æ½Ì¨µÄ¼æÈÝÐÔÎÊÌ⣬×î³£¼ûÒ»¸öÎÊÌâ¾ÍÊÇLinux/uniuxÓëWinµÄһЩ²»Í¬£¬±ÈÈç˵Îļþ·¾¶·Ö¸ô·û¡¢¶à¸ö·¾¢·Ö¸ô·ûµÈµÈ¡£PHP±¾ÉíÄÚÖÃÁ˺ܶೣÁ¿£¬ÔÚ·½±ãµÄ±àд´úÂëͬʱҲºÜºÃµÄ´¦ÀíºÃÁ˲»Í¬Æ½Ì¨ÏµÄһЩ¼æÈÝÐÔÎÊÌâ¡£±ÈÈç×î³£Óõģº
DIRECTORY_SEPARATOR    ·¾¶·Ö¸ô·û£¬WinÏÂÊÇ"\"¶ ......

phpµ¼Èëµ½Excel µÄ utf8¡¢gbk ±àÂë

phpµ¼Èëµ½excel-Ö§³Öutf8ºÍgbkÁ½ÖÖ±àÂë
phpµ¼Èëµ½excelÂÒÂëÊÇÒòΪutf8±àÂëÔÚxpϵͳ²»Ö§³ÖËùÓÐutf8±àÂëתÂëһϾÍÍêÃÀ½â¾öÁË
utf-8±àÂë°¸Àý
<?php 
header("Content-Type: application/vnd.ms-excel; charset=UTF-8"); 
header("Pragma: public"); 
header("Expires: 0"); 
header("Cache ......

phpÖÐthis,self,parentÈý¸ö¹Ø¼ü×ÖÖ®¼äµÄÇø±ð

PHP5ÊÇÒ»¾ß±¸Á˴󲿷ÖÃæÏò¶ÔÏóÓïÑÔµÄÌØÐÔµÄÓïÑÔ,±ÈPHP4ÓÐÁ˺ܶàµÄÃæÏò¶ÔÏóµÄÌØÐÔ,µ«ÊÇÓв¿·Ö¸ÅÄîÒ²±È½ÏÄÑÒÔÀí½â,ÕâÀïÎÒÖ÷Ҫ̸µÄÊÇ this,self,parentÈý¸ö¹Ø¼ü×ÖÖ®¼äµÄÇø±ð¡£´Ó×ÖÃæÉϱȽϺÃÀí½â,·Ö±ðÊÇÖ¸Õâ¡¢×Ô¼º¡¢¸¸Çס£ÎÒÃÇÏȽ¨Á¢¼¸¸ö¸ÅÄî,ÕâÈý¸ö¹Ø¼ü×Ö·Ö±ðÊÇÓÃÔÚʲô µØ·½ÄØ?ÎÒÃdzõ²½½âÊÍÒ»ÏÂ,thisÊÇÖ¸Ïòµ±Ç°¶ÔÏóµÄÖ¸Õë(¹Ã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ