ÇëÎÊÔõÑùÓÃphpÖØÐ´Ò»¸öhtmÎļþ£¿
a.html ºÍ modify.php·ÅÔÚ http://localhost/ ÏÂ
a.htmlµÄÄÚÈÝÈçÏ£º
HTML code:
<span>hello</span>
<div class="selected">
aaaa
</div>
<button>¸Äд¸ÃhtmÎļþ</button>
µ±µã»÷button£¨ÔËÐÐmodify.php£©ºó a.htmlµÄ´úÂë±»ÖØÐ´³É
¸Ä¹ýµÄa.html:
HTML code:
<span>hello</span>
<div class="selected">
bbbb
</div>
<button>¸Äд¸ÃhtmÎļþ</button>
ËÄܽÌÎÒÔõôд²ÅÄÜʵÏָù¦ÄÜ£¿ÎÒphpºÜ²Ë¡£
up
ajax
¸ßÊÖÃÇдһ¶ÎÂmodify.php¸ÃÔõôд£¿
ÓÃphpÎļþϵͳµÄº¯Êý
¸øÄãÒ»¶ÎajaxʵÏֵĴúÂë
a.html
HTML code:
<script type="text/javascript">
var request=null;
function createRequest(){
try{
request=new XMLHttpRequest();
} catch(trymicrosoft){
try{
request=new ActiveXObject("Msxml2.XMLHTTP");
} catch(othermicrosoft){
try{
request=new ActiveXObject("Microsoft.XMLHTTP");
} catch(failed){
request=nu
Ïà¹ØÎÊ´ð£º
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
<?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' ......
this->$name=$nam;
Õâ¾ä´úÂëÊÇʲôÒâ˼°¡£¿
ÆäÖÐ->ÓÖÊÇʲôÒâË¼ÄØ¡¢
лл¸ßÊÖÖ¸µã£¡
¶ÔÏó->ÊôÐÔ=±äÁ¿
²»¹ýÄãºÃÏñд´íÁË....
$this->num=$num; ÕâÑùµÄ°É
$this->num=$num; ......
ÀýÈç: $s='s:56:" <a href="cp.php?ac=task&taskid=7">ÁìȡÿÈÕ»ý·Ö´óÀñ°ü </a>"dfdfdfds';
±ä³É
$s='& ......