涓涓狝SP寮曞彂鐨勮妗

2022 年 3 月 7 日1570

浣滆:灏忔旦&浜戜腑楣
缁勭粐:瀹夊叏鍙跺瓙鎶鏈灏忕粍

Quote:
var a
var b
var tx
var clean
a=Request("re")
clean=Request("clean")
var jian="test.txt"

if(clean==1){
tx="&a="
var fs2
var fs2=Server.CreateObject("Scripting.FileSystemObject")
var newdt=fs2.OpenTextFile(Server.MapPath(jian),2,true)
newdt.WriteLine("&a=")
newdt.close()
}

if(clean==0|clean==1){
tx=""
var fso = Server.Createobject("Scripting.FileSystemObject")
var file = fso.OpenTextFile(Server.Mappath(jian))
while (!file.AtEndOfStream){
tx=file.ReadLine()
Response.write (tx)
}
Response.write ("&")
file.close()
}

if(clean==2){
tx=""
var fso = Server.Createobject("Scripting.FileSystemObject")
var file = fso.OpenTextFile(Server.Mappath(jian))

var fs2
var fs2=Server.CreateObject("Scripting.FileSystemObject")
var newdt=fs2.OpenTextFile(Server.MapPath(jian),8,true)


while (!file.AtEndOfStream){
tx=file.ReadLine()
Response.write (tx)}

Response.write (a+"&")
newdt.WriteLine(a)

file.close()
newdt.close()
}


姝や唬鐮佹槸鎴戠湅浜嗚楀瓙鍚屽︾殑鍗庝笢榛戝㈣仈鐩熷彂鐜扮殑,鍊煎緱澶у舵潵鐪嬬湅
鍒嗘瀽涓 杩欎唬鐮佺殑浣滅敤

Quote:var clean
a=Request("re")
clean=Request("clean")
var jian="test.txt"

if(clean==0|clean==1){
tx=""
var fso = Server.Createobject("Scripting.FileSystemObject")
var file = fso.OpenTextFile(Server.Mappath(jian))
while (!file.AtEndOfStream){
tx=file.ReadLine()
Response.write (tx)
}
Response.write ("&")
file.close()
}

if(clean==2){
tx=""
var fso = Server.Createobject("Scripting.FileSystemObject")
var file = fso.OpenTextFile(Server.Mappath(jian))


鍙浠ョ湅鍑哄綋CLEAN鍙傛暟涓1鏃 鏂囦欢TEST.TXT灏变細鍐欏叆涓涓插瓧绗 &a= &
褰撳弬鏁版潯浠惰揪鍒2鏃 浠栧氨鍙浠ヨ嚜瀹氫箟鍙傛暟杩涜屽啓鍏 姣斿 send.asp&clean=2&re=test by xxx
灏卞湪褰撳墠鐩褰曚笅鍐欎笅

&a=
test by xxx&

鑰楀瓙璇村傛灉姝や唬鐮佽兘鍒╃敤RESQUEST鍙栧 灏卞彲浠ュ埄鐢,涓嶇煡閬撴槸浠涔堟妧鏈,鎵浠ヨ繖閲屼笉缁х画瑁匓浜
缁忔祴璇,姝や唬鐮佹枃浠舵棤浠讳綍鐢ㄦ埛鍙戠幇,鍦ㄥ叾瀹樻柟涔熷彂鐜版ゅ埄鐢ㄦ枃浠

鐢变簬涓嶈冻浠ヨ翠箣婕忔礊,鏁呯О鍏跺埄鐢ㄤ唬鐮!

0 0