Hi everyone,
               I m really happy to see many replies for my query.and thanks a 
lot for that. i was really thinking to implement this logic without changing 
the html files to php. because i ve done the same thing with asp.i ve one 
index.asp and the rest are html pages and even if the user enters directly 
enters into a html page even then the count gets incremented. the thing is ve 
got global.asa in asp. and this is what i ve done in that file
 
<script language="VBScript" runat="server">
Sub Application_OnStart
 Application.Lock 
 Application("counter")=1000
 Application.UnLock 
End Sub
Sub Session_OnStart
Application("counter")=Application("counter")+1
 

'cn = Server.CreateObject("ADODB.Connection")
'strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;User 
ID=Admin;Data Source=d:0_ENIRVAN\05Website\database\counter.mdb"
'strConn = "Driver={Microsoft Access Driver (*.MDB)}; DBQ=" & 
Server.MapPath("database\counter.mdb")
'strLogin = ""
'strPassword = ""
'cn.open strConn, strLogin, strPassword
'strSql="Insert Into HitCounter (HitDate) Values (' " & Now() & " ')"
'cn.Execute strSql
'set cn=nothing
End Sub
Sub Session_OnEnd
End Sub

</script>
 
 
you can see tht i used application object in this code which i beleive v dont 
ve in PHP(if v ve dat please let me know). can v do something like this in php 
tooo......
 
v should seriously think
 
thanks.

                
---------------------------------
Do you Yahoo!?
  Exclusive 'King Kong' Trailer from the maker of 'The Lord of the Rings'

[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to