posteo el código para que lo revisen y me digan si por lo menos esta bien.
Gracias
Código :
<%
visitorsip = request.servervariables ("remote_addr")
set fs = createobject("scripting.filesystemobject")
set wfile = fs.opentextfile("archivo.txt", forappending)
wfile.writeline (visitorsip)
wfile.close
set wfile=nothing
set fs=nothing
If Err <> 0 Then
Response.Write "<br><br><b>No se pudo escribir el archivo</b> <br><br>" & Err.Description
Else
Response.Write "<br/><br/><b>El archivo fue escrito</b><BR/><BR/>"
End IF
%>- El archivo ASP y el TXT están en el mismo directorio
- Los permisos están puestos correctamente.
- El navegador al probar el achivo da este error:
The website cannot display the page
HTTP 500
Most likely causes:
The website is under maintenance.
The website has a programming error.
What you can try:
Refresh the page.
Go back to the previous page.
More information
This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
For more information about HTTP errors, see Help.
Gracias!
