Forum Moderators: phranque

Message Too Old, No Replies

writing to text file from Session_OnStart in global.asa

OnStart in global.asa

         

yaron10

3:17 pm on Apr 11, 2004 (gmt 0)



i am trying to write to a text file the number of visitors in my site.
i create a global.asa file and wrote the following function:
sub Session_OnStart
{
my $filename = 'C:\Apache2\asp\data.dat';
my $input = "Session_OnStart - hello test";
open( OUT, ">> $filename" );
print( OUT "$input.\n" );
close(OUT);
}
unfortunatlly this those not write any thing to the 'C:\Apache2\asp\data.dat' file.
can someone have an idea? mbybe it is somthing in the httpd.conf?

jdMorgan

2:00 pm on Apr 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yaron10,

Welcome to WebmasterWorld [webmasterworld.com]!

Hopefully, someone who's tried this may have an answer for you...

<bump>

Jim