Hello World!Ö®phpµ÷ÓÃCOM+×é¼þ(ת)
Éϴμ̱¾ÈË·¢²¼ÁËVC±àдPHPÀ©Õ¹Ö®Hello Worldƪºó£¬·´Ó³ºÜÇ¿ÁÒ£¬´ó¼Ò¶¼Ï£ÍûÄÜÍÑÀëPHP²ËÄñÐÐÁУ¬Õâ´ÎÎÒ¸ø´ó¼Ò´øÀ´PHPµ÷ÓÃC#±àдµÄCOM+×é¼þ¡£ COM+×é¼þÔ´´úÂë CODE:using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Reflection; using System.Data.OleDb; using System.Data; using System.Collections; using System.Collections.Specialized; namespace comtest { [Guid("DE03FB14-23D6-4be0-93EA-C27651A22A37")] public interface ITest { string Test(string test); [DispId(0)] string About(); [DispId(1)] int Add(int a, int b); } [Guid("0ED3C99A-6EBB-4df5-B03F-16CACE242C67")] public class Class1 : ITest { public string Test(string test) { return test; } public string About() { return "»¶Ó·ÃÎÊ http://www.sojqi.com"; } public int Add(int a, int b) { return a + b; } } } ÒÔÉÏ´úÂë±àÒëºóÉú³É comtest.dll È»ºó½«Æä×¢²á phpµ÷Óà [php]
add($t1,$t2); $f=$b->about(); echo $r; echo $f; ?> [/php]
Ïà¹ØÎĵµ£º
memcached±¾µØwindowsϵͳ²âÊÔ
ÓõÄÊÇwindowsϵͳ¡£
1.ÏÂÔØMemcache for win32
ÏÂÔصØÖ·: http://jehiah.cz/projects/memcached-win32/
Ñ¡Ôñmemcached 1.2.1 for Win32 binaries (Dec 23, 2006) ÊÇexeµÄ³ÌÐò
memcached.exe -d install
memcached -d start
2.ÏÂÔØphp_memcache.dll
ÏÂÔصØÖ·: http://www.wesoho.com/ ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating ......
ÏÖÔÚ¶ÔPHP¸Ð¾õÔ½À´Ô½Ë³ÊÖÁË£¬¶ÔHTMLµÄ±êÇ©Ô½À´Ô½ÊìϤÁË£¬¿ÉÊǶÔPHPµÄ²å¼þµÄÈÏʶ»¹ÎªÖ®ÉõÉÙ¡£
µ«ÊÇ£¬ËµÊµ»°£¬Ä¿Ç°µÄÎÒòËÆÒ²²»ÐèҪʹÓÃPHPµÄ²å¼þ£¬Óòå¼þµÄÄ¿µÄ¿ÉÄÜÊÇΪÁËÏԵñȽÏÅ£°É£¬ºÇºÇ¡£
µ«ÊÇ»¹ÊÇ̤̤ʵʵµÄѧϰ°É£¬±Ï¾¹¶îµÄC++»¹Ã»ÓÐѧ£¬¶ÔÓÚPHPµÄ·â×°ºÍ±à³ÌÒ»µãÒ²²»Á˽⡣ ......
±¾ÎÄת×Ô http://hi.baidu.com/kxw102/blog/item/f1303188d9c148bb0e2444f2.html£¬¸Ðл×÷ÕߵķÖÏí
ÔÚ
PHP
ÖУ¬»ù±¾Êý¾Ý¿ÉÒÔ·ÖΪ³£Á¿ºÍ±äÁ¿Á½ÖÖ¡£³£Á¿ÃûºÍ±äÁ¿Ãûͨ³£³ÆΪ±êʶ·û¡£(
ÐèҪעÒâµÄÊDZêʶ·û±ØÐëÒÔ×Öĸ»òÕßÏ»®Ïß¿ªÍ·£¬²¢ÇÒÖ»ÄÜ°üÀ¨×Öĸ¡¢Êý×ÖºÍÏ»®Ïß
)
ÀýÈ磺
my_function¡¢Size¡¢
_BlackµÈµÈ
1.ÏÂÃæËµÏ ......