Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/11/2002, 17:08
Avatar de g_susdaniel
g_susdaniel
 
Fecha de Ingreso: mayo-2001
Ubicación: Frente al Monitor :þ
Mensajes: 995
Antigüedad: 25 años, 5 meses
Puntos: 0
algo así...

Código PHP:
 'Creamos la objeto del File System Object
Set fsoObject = Server.CreateObject("Scripting.FileSystemObject")

'
Inicializamos el FSO con la ruta donde se encuentra el fichero de texto
Set filObject 
= fsoObject.GetFile(Server.MapPath("tu_txt.txt"))
    
'Abrimos el fichero donde contamos los usuarios
Set tsObject = filObject.OpenAsTextStream
    
'
Lee el numero de visitante del archivo donde los contamos
lngVisitorNumber 
= CLng(tsObject.ReadAll)
    
Vaciamos los objetos del servidor
Set fsoObject 
= Nothing
Set tsObject 
= Nothing
Set filObject 
= Nothing 
En la variable lngVisitorNumber tienes el valor de tu txt
__________________
No, no no... no hay firma...