asp and php delete their own code z.asp
Copy the code code as follows:
<%
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
Copy the code code as follows:
<?php
$file = z.php;
if (file_exists($file)) {
@unlink ($file);
}
?>
Run it and it will disappear...
Copy the code code as follows:
<%
s2= Server.MapPath(z2.asp)
s= Server.MapPath(z.asp)
Set fso = CreateObject(Scripting.FileSystemObject)
fso.CopyFile s2,s
Set fso = Nothing
%>
That’s okay too@_@