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

GyPSii API PHPÓ¦Óóõ̽

GyPSiiÀûÓÃXML-RPC£¬PHPÀïXML-RPCµÄÏà¹ØÓ¦ÓÃʾÀýºÜ¶à£¬²é²éÊֲᡢGOOGLEһϾͿÉÒÔÕÒµ½ºÜ¶à¡£GyPSii APIÀïÌṩÁËÒ»¸ö²Ù×÷ÀàÓÃÀ´ÇëÇó·þÎñ£¬²¢ÌṩÁËÒ»¸öÇëÇóº¯Êý£¬Ö»Òª½«´Ëº¯Êý·Å½ø²Ù×÷ÀàÀ¾Í¿ÉÒÔ·½±ãµÄʹÓÃÁË£¬º¯ÊýÈçÏ£º
function GyPSiiXMLRPC( $uri, $host, $pid, $body="" ) {
$this->addHeader( 'Content-Type', "application/x-gypsii-xmlrpc" );
$this->addHeader( "X-GyPSii-Authorization", "GSAPI signer=\"$pid\",signature=\"$sig\",token=\"$tok\"" );
$http->addHeader("Host","$host");
$this->requestBody = $body;
if( $this->sendCommand( "POST $uri HTTP/$this->protocolVersion" ) )
$this->processReply();
$this->removeHeader('Content-Type');
$this->removeHeader('Content-Length');
$this->removeHeader('X-GyPSii-Authorization');
$this->requestBody = "";
return $this->reply;
}
²Ù×÷ÀàÏÂÔØµØÖ·£ºhttp://lwest.free.fr/doc/php/lib /index.php3?page=net_http_client&lang=en


Ïà¹ØÎĵµ£º

php curl ¼ò½é


Ô­ÎÄ
£¨Ó¢ÎÄ£©µØÖ·£º
http://www.phpit.net/article/using-curl-php
°æÈ¨ÉùÃ÷£ºÊðÃû-·ÇÉÌÒµÐÔʹ
ÓÃ-½ûÖ¹ÑÝÒï 2.0
ͻ񻣼
ÔÚÕâÆªÎÄÕÂÖÐÖ÷Òª½²½â
php_curl¿âµÄ֪ʶ£¬²¢½ÌÄãÈçºÎ¸üºÃµÄʹÓÃphp_curl¡£
¼ò½é
Äã¿ÉÄÜÔÚÄãµÄ±àдPHP½Å
±¾´úÂëÖлáÓöµ½ÕâÑùµÄÎÊÌ⣺ÔõôÑù²ÅÄÜ´ÓÆäËûÕ¾µã»ñÈ¡ÄÚÈÝÄØ£¿ÕâÀïÓм¸¸ö½â¾ö·½Ê½ ......

phpÀ©Õ¹¶à½ø³Ì¹²ÏíÄÚ´æ

²½Ö裺
1.ÔËÐÐÃüÁ./ext_skel --extname=sharemem
2.ÔËÐÐÃüÁ./configure --with-php-config=/usr/local/lnmp/php/bin/php-config
3.make clean
make
make install
/usr/local/lnmp/php/sbin/php-fpm restart
/usr/local/lnmp/php/bin/php-cgi /data0/htdocs/blog/sharemem.php
´úÂëÈçÏ£º
1.config.m4
PHP_A ......

ת£ºApache+mysql+phpÔÚwindowsϵÄÅäÖÃ(³É¹¦)

http://hi.baidu.com/fish124423/blog/item/c6f9f310190dd779ca80c456.html½â¾öerror trying access httpd. conf file.you will need to manually configure theµÄÅäÖÃÎÊÌâ
Apache+mysql+phpÔÚwindowsϵÄÅäÖÃ(³É¹¦)
2008-12-16 14:49
ApcheÏÂÔØµØµã£ºhttp://www.apache/org
Or   http://www.51cto.com/html/ ......

PHPÖлù±¾·ûºÅ¼°Ê¹Ó÷½·¨

// µ¥ÐÐ×¢½â
/* */ ¶àÐÐ×¢½â
ÒýºÅµÄʹÓÃ
’ ’ µ¥ÒýºÅ,ûÓÐÈκÎÒâÒå,²»¾­Èκδ¦ÀíÖ±½ÓÄùýÀ´;
" "Ë«ÒýºÅ,php¶¯Ì¬´¦ÀíÈ»ºóÊä³ö,Ò»°ãÓÃÓÚ±äÁ¿. 
±äÁ¿ÐÎ̬:
Ò»ÖÖÊÇTrue ¼´ ÕæµÄ;
ÁíÒ»ÖÖÊÇFalse ¼´¼ÙµÄ
³£¼û±äÁ¿ÐÎ̬:
string ×Ö´®(Êý×Ö\ºº×Ö\µÈµÈ)
integer ÕûÊý(1¡¢2¡¢3¡¢4¡¢5¡¢0¡¢-1¡¢-2¡¢µÈµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ