Burden to open and append text file with fopen
Posted: Tue Feb 03, 2009 12:54 pm
Hello!
Thanks to your help, I wrote a small php script using fopen (...,'a'); fwrite and fclose to write the IP address of visitors to my web site into a text log file.
viewtopic.php?f=1&t=93484&p=511298#p511298
Its been working great but now my file is approaching 200K.
My question for your theorists is....is there a cost to having php open and append text files when they get large? Will it slow down my site or can I just continue on as the thing gets up to a few MB?
- thanks
Thanks to your help, I wrote a small php script using fopen (...,'a'); fwrite and fclose to write the IP address of visitors to my web site into a text log file.
viewtopic.php?f=1&t=93484&p=511298#p511298
Its been working great but now my file is approaching 200K.
My question for your theorists is....is there a cost to having php open and append text files when they get large? Will it slow down my site or can I just continue on as the thing gets up to a few MB?
- thanks