Dear friend, I have tried your solution, but still the same error "an error occurred while processing this directive"
I think I have to find that directive first and correct or change then try the code, I`m gonna look at Apache conf. file
god bless
I didn't look at your code...You didn't mention anything about file permissions. Just in case you missed that part out, 'counter.dat' should be chmod'ed to 666 and your perl script to 755.