Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

Ƹ PHP¿ª·¢¸ß¼¶¹¤³Ìʦ

¹«Ë¾Ãû³Æ Ò½ÔªÍø
ְλÃû³Æ PHP¿ª·¢¸ß¼¶¹¤³Ìʦ
ÕÐƸÈËÊý 1
¹¤×÷µØµã ÉϺ£
нˮ´ýÓö ÃæÒé
µç×ÓÓÊÏä zik@yynet.cn
¹«Ë¾ÍøÖ· http://www.yynet.cn
¹«Ë¾½éÉÜ Ò½ÔªÍø-רעҽ»¼»¥¶¯£¬¼ÜÆðÒ½»¼ ......

php ¶ÁÈ¡excelʱ¡£±àÂëת»»ÎÊÌâ

Çë½Ìexcel µÄ±àÂëÎÊÌâ
excelÖдæÔÚ Î÷°àÑÀÓÖÐÎÄ£¬Ó¢Ó¶íÓï °¢À­²®ÓµÈ¶àÖÖÓïÑÔ php ¶Áȡʱ»ù±¾Õý³£ÏÔʾ£¬¾ÍÊÇÎ÷°àÑÀÓ·¨ÓïµÄ Groupe électrogène marins ÕâÖÖµ¥´ÊµÄºìÉ«×Ö·û»á³öÏÖÂÒÂë¡£±àÂëÕ ......

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

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

¹ØÓÚ¡¡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ºÅ