Make ASP programs a lot of benefits, but one thing, the DLL must be registered to call in ASP. If it is your own server, it is okay, but if it is a virtual server, there is no way to use it.
How to register our DLL on the remote host? Use the shell on the server! ! !
ID = "AD_TOP" name = "ad_top" align = "left" marginwidth = "0" marginheight = "0" src = "http://adv.pconline.com.cn/adpuba/show?id=pc.rjzx. Kaifa.wenzhang.hzh. & media = html & pid = cs.pconline.rjzx.hzh. "Frameborder =" 0 "width =" 320 "scrolling =" no "height =" 280 "> Let us first pass its own DLL file through FTP Or http upload to the server, then make an ASP program, call wscript.shell to execute the regsvr32 command: set Oshell = CreateObject ("wscript.shell") Oshell.run "C: /winnt/system32/Regsvr32.exe / sd: / xxx.dll ", 0, false, of course, if the other party is safe, this code may not be used, but no matter what, learning is also good, :) Also remind those rental space Friends, do your servers limit the permissions using WScript.Shell? Still be careful
The full code is as follows, saved as .asp can be used:
<% Response.buffer = true%> <% server.scripttimeout = 500 dimfolderpath, frmfilepath
FRMFolderPath = Request.form ("frmfolderpath") frmfilepath = request.form ("frmdllpath") frmmethod = request.form ("frmmethod") btnreg = request.form ("btnreg")%>