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
if($_SERVER['HTTP_REFERER']!=''){
@header("Content-type:image/jpeg");
echo file_get_contents("xlight.jpg");
}
else{
@header("location:ht ......
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
<?php
include("adodb/adodb.inc.php");
$db = &NewADOConnection("access");
$access = realpath("Data.mdb");
$dsn = "Provider=Microsoft.J ......
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]
Òý ......