ÇëÎÊÔõÑùÓÃ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à ......
$a = $_FILES['userfile']['name'] ;
$test = $a;
$p = split('/',$test);
$p[count($p)-1];
$content = file_get_contents("$p");
$con ......
<?php
/*
¹¦ÄÜ£ºPHPα¾²Ì¬»¯Ò³ÃæµÄʵÏÖ
¾ßÌåÓ÷¨:
ÀýÈçÁ´½ÓΪ:test.php/year/2006/action/_add.html
mod_rewrite();
$yearn= $_GET["year"];//½á¹ûΪ'2006'
......
Ïë°Ñ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]
Òý ......
ÀýÈç: $s='s:56:" <a href="cp.php?ac=task&taskid=7">ÁìȡÿÈÕ»ý·Ö´óÀñ°ü </a>"dfdfdfds';
±ä³É
$s='& ......