Hi i am using php 5.2.3 on Ubuntu 7.10 and apache 2.2.4.
i have just switched from windows 2000 and have encountered a problem with my log viewer script unlike windows i cannot just open the apache log file with php as it is always being used by apache. now i can copy using command line:
cp /var/log/apache2/access.log /var/log/apache2/access.log.copy
I need to do this in php but i don't no how.
Please help
Thanks Scott.
i have just switched from windows 2000 and have encountered a problem with my log viewer script unlike windows i cannot just open the apache log file with php as it is always being used by apache. now i can copy using command line:
cp /var/log/apache2/access.log /var/log/apache2/access.log.copy
I need to do this in php but i don't no how.
Please help
Thanks Scott.
Comment