I just got a message to say the eKstreme php counter on my site had run out of memory and could not write the hits to the file. The script is now disabled and the site works again but does anyone know what the maximum number of hits it can handle is? Edit: the error says Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 149 bytes) in /home/counter/phpcounter.php on line 211
yes ur solution lies in the php.ini file cant think what entry from the top of my head but there are settings to increase how much memory php scripts are allowed to use
Found the problem - php scripts can use a maximum of 12mb RAM to run. In this case it was opening a text file which was using up all the RAM. The solution? reduce the epoch size from 7 days to 3 days and wait until google analytics sends me an invite.
or u can try to increase memory size in php.ini i do alot of file uploads/downloads on one of my servers and i increased the max memory / max execution / max upload size to alot higher so not to get errors like that or u can read / write in chunks of 1204 bytes a time