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ħ·½µÄ³ÌÐò£¬¸Ã´ÓºÎ¿ªÊ¼£¿
лл¸÷룬°ïæÌáµã½¨Òé°É¡£
http://www.mofang.net/code/176/182/6581.html
ÎÒÖ»ÄÜÍ»ÆÆ60Ã룡°¦¡£
ÎÒ¸Õ¹ý40Ãë
googleµÄandroidÖÐÓиöOpenGL ES + ......
±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......
<?php
/*
¹¦ÄÜ£ºPHPα¾²Ì¬»¯Ò³ÃæµÄʵÏÖ
¾ßÌåÓ÷¨:
ÀýÈçÁ´½ÓΪ:test.php/year/2006/action/_add.html
mod_rewrite();
$yearn= $_GET["year"];//½á¹ûΪ'2006'
......
webclient.phpÎļþ£º
<?php
$arrOptions = array( 'uri'=>'http://10.10.19.111/','location'=>'http://10.10.19.111/webservice/webservice.php','trace' ......
¶Ôphp²»ÊǺÜÁ˽â дÁ˸ö¼òµ¥µÄÀý×Ó
ÏÖÓÃc#µ÷ÓÃphpдµÄ webservice£¨soap WSDL£©iis6.0+php5.2.8
webserviceÈçÏÂ
<?php
class WebService
{
public function Logout()
{
//header('Co ......