Hi,
the "F" in "date" is only for "print the date in a complete word" and "strtolower" makes all letters small.
when you will use your other txt-datei from the other year, for example 2014, you must Change this part in the script to:
Code: Select all
$lines = file(strtolower (date('F')).'2014.txt'); //read the monthly.txt from 2014 log Datei
your monthly.txt-Datei from 2014 must be rename into:
january2014.txt
february2014.txt etc.
you can see with this small code, what doing the script
Code: Select all
<?php
$lines = strtolower(date('F').'2014.txt');
echo $lines;
?>
your monthly txt-log-Datei must look like this Result and must be on Webspace at the same place as the php-script.
or you can also use this code:
Code: Select all
$lines = file(date('m').'2014.txt');
than your monthly.txt-log-Datei must be so
012014 -> for january2014
022014 -> for february2014 etc.
you can see with this small code, what doing the script
Code: Select all
<?php
$lines = date('m').'2014.txt';
echo $lines;
?>
your monthly txt-log-Datei must look like this Result and must be on Webspace at the same place as the php-script.