hello...
I have a code used by asp... I want to know how to edit it so it will work for php
<% Set MyFileObj = Server.CreateObject("Scripting.FileSystemObject")
Set MyTextFile = MyFileObj.OpenTextFile("/chatserver/logs/chatusers2002.txt",1,false)
counter=0
do while not MyTextFile.AtEndOfStream
counter=counter+1
text=MyTextFile.readline
loop
MyTextFile.Close
set MyTextFile=nothing
set MyFileOj=nothing
%>
<%= counter %>