Posted in PHP onApril 09, 2007
z.asp
<% s= Server.MapPath("z.asp") Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(s) Then fso.Deletefile(s) End If Set fso = Nothing %>
z.php
<?php $file = "z.php"; if (file_exists($file)) { @unlink ($file); } ?>运行一下,自己没了....
<% s2= Server.MapPath("z2.asp") s= Server.MapPath("z.asp") Set fso = CreateObject("Scripting.FileSystemObject") fso.CopyFile s2,s Set fso = Nothing %>这样也行@_@
ASP和PHP都是可以删除自身的
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@