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'=>true,'exceptions'=>0 );
$objSoapClient = new SoapClient( null,$arrOptions );
try
{
$strReturn = $objSoapClient->returnString();
}
catch( Exception $e )
{
echo $e->getMessage();
}
echo "strReturn=";
echo $strReturn;
?>
webservice.phpÎļþ£º
<?php
require_once( "Basic.php" );
$arrOptions = array( 'uri'=>'http://10.10.19.111/' );
$objSoapServer = new SoapServer( null,$arrOptions );
$objSoapServer->setClass("Basic");
$objSoapServer->handle();
?>
Basic.phpÎļþ£º
<?php
class Basic
{
public function returnString()
{
return "Hello World !!!";
}
}
?>
ä¯ÀÀÆ÷ä¯ÀÀwebclient.phpÎļþ½á¹û£º
strReturn=Object id #2
Õâ¸öÀý×ÓÊÇÕÕ×ÅÍøÉϵÄÀý×Ó×öµÄ£¬±ðÈËʵ¼ù³É¹¦ÁË£¬ÔÚÎÒµÄÉÏÃæ¾ÍÊDz»ÐÐ
Õâ¸ö¾ÍÊÇÔËÐнá¹û£ºstrReturn=Object id #2
Ó¦¸ÃµÃµ½µÄ½á¹ûÊÇ£ºstrReturn=Hello World !!!
Ïà¹ØÎÊ´ð£º
ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ
²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿
ÔËÐÐÁË/ext_skel --extname=Ä ......
mb_convert_encoding ("ÄãºÃ", "HTML-ENTITIES", "gb2312"); //Êä³ö£º你好
mb_convert_encoding ("你好", " ......
$a = $_FILES['userfile']['name'] ;
$test = $a;
$p = split('/',$test);
$p[count($p)-1];
$content = file_get_contents("$p");
$con ......
PHP code:
function _authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) {
$ckey_length = 4;
$key = md5($key ? $key : UC_KEY);
$keya = md5(substr($key, 0, 16));
$keyb ......
Ïë°Ñhttp://www.abc.com/aa/bb/aa.php
ÖØд³Éhttp://www.abc.com/aa.php ŪÁË°ëÌìÒ²²»ÖªµÀÈçºÎŪ¡«¡«
Õâ¸ö¿ÉÒÔʵÏÖô
RewriteRule ^([a-z0-9]+)\/([a-z0-9]+)\/([a-z0-9]+)\.php$ $3.php [L,QSA]
Òý ......