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

PHPÈçºÎµ÷ÓÃC++дµÄ³ÌÐò

ÎÒÓÐÒ»¸öC++±àдµÄ±È½Ï´óÐ͵ijÌÐò£¬ÏÖÔÚÏëÒÆÖ²µ½ÍøÒ³ÖС£¿ÉÒÔ×ö³ÉsoʲôµÄ¶¼ÐС£ÇëÎÊÎÒ¸ÃÈçºÎµ÷ÓÃÄØ£¿
Õâ¸öÊÂÇé¹À¼ÆºÜ¶àÈË×ö¹ý£¬Äܸø¸öÉÔ΢¾ßÌåµã¶ùµÄ²½ÖèÂð£¿
лл¡£
¶ÔÁË Íü¼Ç˵ÁË¡£
ÎÒµÄÍøÕ¾ÔÚÒ»¸öÐéÄâÖ÷»úÉÏ£¬¿É·ñÓÐÕâÑùµÄȨÏÞ£¿

ÐéÄâÖ÷»ú»ù±¾ÉÏûϷ

c++ÊÇ¿ÉÒÔд³ÉapacheµÄÒ»¸öÄ£¿éµÄ¡£Ïêϸ¿´¿´apacheÍøÕ¾ÔõÑù±àдapacheµÄÄ£¿é

ͳһ¥ÉÏ

д³É.so È»ºóÔÙapacheÖÐload´ËÄ£¿é

ÐéÄâÖ÷»úÒ»°ã²»ÄÜÐÞ¸Äapache confÅäÖÃ

Èç¹û¿ÉÒÔÓÃdlº¯ÊýµÄ»°£¬¿ÉÒÔ¿¼ÂÇ×ö³ÉphpÀ©Õ¹£¬È»ºóÓÃdl¶¯Ì¬¼ÓÔØ£¬Èç¹ûÄãµÄÐéÄâÖ÷»ú¿ÉÒÔÖ´ÐÐcgi£¬Ò²¿ÉÒÔÖ±½Ó°Ñc++дµÄ×ö³Écgi

system
exec
ÕâÁ½¸öº¯Êý¶¼¿ÉÒÔµ÷ÓÃÍⲿ³ÌÐò²¢»ñµÄÔËÐнá¹û£¬¿´¿´°É£»ÊÖ²áÉÏÓÐ

$result = system(³ÌÐòÃû);

ÕâÖÖÐÎʽ
ÁíÍ⣬¿ÉÒÔ½«ÄãµÄ³ÌÐòÀ©Õ¹µ½PHPÖУ»ÊÖ²áÉÏÓнéÉÜ


Èç¹û¿ÉÒÔÓÃdlº¯ÊýµÄ»°£¬¿ÉÒÔ¿¼ÂÇ×ö³ÉphpÀ©Õ¹£¬È»ºóÓÃdl¶¯Ì¬¼ÓÔØ£¬Èç¹ûÄãµÄÐéÄâÖ÷»ú¿ÉÒÔÖ´ÐÐcgi£¬Ò²¿ÉÒÔÖ±½Ó°Ñc++дµÄ×ö³Écgi

Õâ¸ö»¹²Ù×÷¿ÉÐÐÐÔ²»´í

ѧϰ£¡

ʹÓÃdlº¯Êý¼ÓÔØphpÀ©Õ¹so¿ÉÒÔʵÏÖ¡£
¿´¿´Àý×Ó£º
http://hi.baidu.com/flash866/blog/item/98d735d10f98243f9b50278a.html

Ö÷»úµÄ²Ù×÷ϵͳÊÇlinuxµÄ~~~
ÎÒ¿´Á˸÷λµÄ»Ø¸´»¹ÊÇһͷÎíË®£¬ÓÐûÓÐÏêϸµã¶ùµÄ²½Öè°¡~~

ÎÒÊÇÓÃphpÖ±½Óµ÷c++¿ÉÖ´ÐгÌÐòµÄ¡£¡£´ó¸ÅÈçÏÂ

1 ¼ÙÉèÄãÓиö c++ µÄapplication ½Ð hallo ·ÅÔÚ·¾¶/users/you/hallo
2 ÄãÏÈ°ÑhalloËü¸ø chmod 777£¬±ä³É¿ÉÖ´ÐеÄ
3 È»ºóÄãдphp´úÂë Ö±½Óµ÷
$command = escapeshellcmd("hallo ". p


Ïà¹ØÎÊ´ð£º

ÓÃC»òC++ÈçºÎ±àдÇó½â3Dħ·½³ÌÐò - C/C++ / C++ ÓïÑÔ

ÇëÎÊÓÃC»òC++ÈçºÎ±àдÇó½â3Dħ·½µÄ³ÌÐò£¬¸Ã´ÓºÎ¿ªÊ¼£¿
лл¸÷룬°ïæÌáµã½¨Òé°É¡£

http://www.mofang.net/code/176/182/6581.html

ÎÒÖ»ÄÜÍ»ÆÆ60Ã룡°¦¡£

ÎÒ¸Õ¹ý40Ãë

googleµÄandroidÖÐÓиöOpenGL ES + ......

c,c++Á¬½Ómysql ÕÒ²»µ½Í·²¿Îļþ£¨ÐÂÊÖ£©

±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......

¹ØÓÚphpα¾²Ì¬µÄÎÊÌâ

<?php
/*
¹¦ÄÜ£ºPHPα¾²Ì¬»¯Ò³ÃæµÄʵÏÖ
¾ßÌåÓ÷¨:
ÀýÈçÁ´½ÓΪ:test.php/year/2006/action/_add.html
mod_rewrite();
 $yearn= $_GET["year"];//½á¹ûΪ'2006' ......

php webservice±¨´íObject id #2À²£¡

webclient.phpÎļþ£º
<?php
$arrOptions = array( 'uri'=>'http://10.10.19.111/','location'=>'http://10.10.19.111/webservice/webservice.php','trace' ......

¹ØÓÚ¡¡php webservice¡¡µÄÎÊÌâ - PHP / »ù´¡±à³Ì

¶Ôphp²»ÊǺÜÁ˽â дÁ˸ö¼òµ¥µÄÀý×Ó
ÏÖÓÃc#µ÷ÓÃphpдµÄ webservice£¨soap WSDL£©iis6.0+php5.2.8
webserviceÈçÏÂ
<?php
class WebService
{
  public function Logout()
  {
//header('Co ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ