PHPÀ©Õ¹C++
Õâ¸öÎĵµ¼òµ¥½éÉÜÁËÔõôʹÓÃC++ΪPHP±àдһ¸öÀ©Õ¹Ä£¿é¡£ÎÒÒѾ±»Îʼ°Õâ¸öÎÊÌâÎÞÊý´ÎÁË£¬ËùÒÔÎÒ¾ö¶¨ÎªºóÀ´Õßдһ¸ö¼òµ¥µÄHOWTO¡£ÕâƪÎÄÕÂÖ»»á˵Ã÷һЩҪµãºÍ¹Ø¼üÖ®´¦£¬Èç¹ûÄãÏ£ÍûѧϰC++»òPHP£¬Çë²éÔÄÆäËüµÄÎĵµ¡£
˳±ã£¬ÔÚ±¾ÎÄÖÐÎÒÃÇÒ²»á¿´Ò»ÏÂÔÚPHP5ÖÐÔõô°ÑC++ÀàÓ°Éäµ½PHPÖС£ÎÄÕÂÖеÄÀý×Ó¿ÉÒÔÔÚPHP4ºÍPHP5µÄ»·¾³ÏÂʹÓ㬵«ÊÇÓÐÒ»¸öССµÄÎÊÌ⣺À©Õ¹µÄPHPÀàÖ»ÄÜÔÚPHP5ÖÐʹÓá£:P
»ù±¾ÉÏ£¬ÎÒÃÇ»á½éÉÜÔõôÑùΪC++Àà´´½¨Ò»¸ö¿ÉÒÔÔÚPHP4ºÍPHP5ÏÂʹÓõĽṹ»¯½Ó¿Ú£¬¼°¿ÉÒÔÔÚPHP5ÏÂʹÓõĶÔÏ󻯽ӿڡ£
Õâ¸öHOWTO
ÊDzο¼ÁËһЩʵÏֵúܺõÄPHP5À©Õ¹Ä£¿éºóд³ÉµÄ¡£È磺SqliteºÍSimpleXMLÀ©Õ¹¾ÍÊǽ̵¼´ó¼ÒÔõÑùÔÚPHP5ÖÐÀ©Õ¹ÀàµÄºÜºÃÀý×Ó¡£µ«ÎÒµÄÄÇ
Щ×÷Æ·³ýÍ⣬ֻÓÐcryptopp-phpʹÓÃÁ˺ܶàÌØÐÔ¡££¨»¹Ã»Óз¢²¼µÄPHP5½«¿ÉÒÔÖ§³Öcryptopp-php 0.0.14¡££©
×¢Ò⣺PHP5Ä¿Ç°ÈÔÔÚÔ¤·¢²¼×´Ì¬£¬Ëü¿ÉÄÜ»¹»á×öһЩ¸Ä¶¯£¬¾¡¹ÜÎĵµÖеĴúÂëÎÒÒѾÔÚ×îÐÂCVS°æ±¾µÄPHP 5»·¾³Ï²âÊÔ¹ý£¬µ«ÔÚÄã¶Áµ½ÕâƪÎÄÕµÄʱºò¿ÉÄÜ»¹Òª×öһЩ¸Ä¶¯²ÅÄÜÕý³£¹¤×÷¡£Èç¹ûÎĵµÖеĴúÂëÔÚ×îÐÂPHP 5Öв»ÄÜʹÓã¬ÇëÖª»áÎÒ£¬ÎÒ»á×öÏàÓ¦µÄÐÞÕý¡£
µÚ1½Ú. ¿ªÊ¼Ö®Ç°
¿ªÊ¼Ç°£¬ÎÒҪ˵Ã÷£ºÕâƪÎÄÕÂËùÃèÊöµÄÖ÷ÒªÊÇÔÚUNIXµÄPHP»·¾³Éϵġ£µ±È»£¬ÎÒ»áÌἰһЩÔÚWindowsÉϵĿª·¢¡£µ«ÊÇÎҴ󲿷ֵıàÂ붼ÊÇÔÚUNIXϵͳÉϵģ¬ËùÒÔÎÒ»á¸ü¶àµÄ½éÉÜÒ»ÏÂÎÒËùÁ˽âµÄÄÇÒ»²¿·Ö¡£
ÁíÍâÒ»µãÎÒҪ˵Ã÷µÄÊÇ£ºÎÄÖÐËù½éÉܵķ½·¨ÔÚPHP 4.3.xºÍPHP 5϶¼ÊÇ¿ÉÐеġ£¾¡¹ÜÎÒÃÇÔÚ¿ªÊ¼µÄʱºò»á»ùÓÚPHP5À´½éÉÜ£¬µ«ÊÇÄã»á·¢ÏÖÕâЩ·½·¨ÔÚPHP 4.3.xÖÐÒ²ÊÇ¿ÉÐеġ£
ÎÒÔÚ±¾ÎÄÖÐÓÐһЩԼ¶¨...
$PHP_HOME
ÊÇÖ¸ÄãµÄPHPÔ´´úÂëµÄλÖã¬È磺Äã½â¿ªµÄPHPÔ´´úÂë°üËù·ÅµÄλÖá£ÔÚÎÒµÄϵͳÖÐÖ¸µÄÊÇ£º
/home/jay/setup/php/php-x.x.x
.
ÎÒÃÇÓÃÀ´×öÀý×ÓµÄÄ£¿é½Ð×ö
php5cpp
.
µÚ2½Ú£®°²×°
ÔÚÄãÓÃC++±àдPHPÀ©Õ¹Ç°£¬ÄãÏÈÒª´î½¨Ò»¸ö»ù±¾µÄÀ©Õ¹Ä£¿éµÄ¼Ü¹¹¡£ÔÚUNIXÏ£¬Äã¿ÉÒÔÔËÐÐÒ»¸öÔÚ
$PHP_HOME/ext
ϽÐ×ö
ext_skel
µÄshell½Å±¾¡£ÏÈÇл»µ½
$PHP_HOME/ext
Ŀ¼ºÍÖ´ÐÐÄǸöshell½Å±¾£¬²¢ÓÃ
--extname
²ÎÊýΪÄãµÄÀ©Õ¹Ä£¿éÃüÃû¡£
jay@monty ~ $ cd setup/php/php-5.x.x/ext
jay@month ext $ ./ext_skel --extname php5cpp
ÔÚWindowsϵͳ£¬Ä¿Ç°PHP CVS´úÂëÖУ¬¿ÉÒÔʹÓÃλÓÚ
$PHP_HOME/ext
µÄ
ext_skel_win32.php
µÄPHP½Å±¾ÊÇ¡£Ò²Ð
Ïà¹ØÎĵµ£º
Show All 1 2 3 4 5
±¾ÎÄÓÉMichaelÔ´´ºÍÕûÀí£¬×ªÔØÇë±£Áô³ö´¦£¡http://www.toplee.com/blog/?p=100
Trackback URL: http://www.toplee.com/blog/wp-trackback.php?p=100
¶ÔÓÚ±¾ÎÄÖгöÏֵĴíÎóµ¼ÖÂÄúµÄËðʧ£¬Michael²»³Ðµ£ÔðÈΡ£
Ç°Ò»¶Îʱ¼äÍê³ÉÁË·þÎñÆ÷´ÓFreeBSD4.10µ½6.1µÄÉý¼¶£¬Í¬Ê±°ÑPHPÒ²Éý¼¶µ½ÁË×îÐ嵀 ......
ʹÓÃPHPµÄcURL¿â¿ÉÒÔ¼òµ¥ºÍÓÐЧµØÈ¥×¥ÍøÒ³¡£ÄãÖ»ÐèÒªÔËÐÐÒ»¸ö½Å±¾£¬È»ºó·ÖÎöÒ»ÏÂÄãËùץȡµÄÍøÒ³£¬È»ºó¾Í¿ÉÒÔÒÔ³ÌÐòµÄ·½Ê½µÃµ½ÄãÏëÒªµÄÊý¾Ý
ÁË¡£ÎÞÂÛÊÇÄãÏë´Ó´ÓÒ»¸öÁ´½ÓÉÏÈ¡²¿·ÖÊý¾Ý£¬»òÊÇÈ¡Ò»¸öXMLÎļþ²¢°ÑÆäµ¼ÈëÊý¾Ý¿â£¬ÄÇžÍÊǼòµ¥µÄ»ñÈ¡ÍøÒ³ÄÚÈÝ£¬cURL ÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄPHP¿â¡£
PHPÖеÄCURLº¯Êý¿â£¨Client URL Librar ......
ºÜ¾ÃǰЩµÄһЩÎÄÕ£¬ÄÇʱºò¼¼Êõ»¹ÔÚ³õ¼¶½×¶Î£¬ÔÚÏÖÔÚ¿´À´´úÂë¹»Àõģ¬µ«ÊÇÈË×ÜÊÇÒ»²½²½×ßÉÏÀ´µÄ£¬Ï£ÍûÄܸø³õѧÕßÒ»µã¹ÄÀøÁË£¡
<?php
/*********************************************************
filename£ºmulti.php
describe£º ÏÔʾ¶àÓÚÒ»Ò³µÄÁ´½Ó
function£º·ÖÒ³ÏÔʾģ¿é
auth ......
1£ºsmarty »º´æµÄÅäÖÃ
Php´úÂë
$smarty->cache_dir = "/caches/"; //»º´æĿ¼
$smarty->caching = true; //¿ªÆô»º´æ,ΪflaseµÄʱºî»º´æÎÞЧ
$smarty->cache_lifetime = 60; //»º´æʱ¼ä
2:smarty»º´æµÄʹÓúÍÇå³ý
Php´úÂë
$smarty->di ......