The Waiting Room by Terry Mechan
$filePath = 'waitingroom_download.txt'; // If file exists, read current count from it, otherwise, initialize it to 0 $count = file_exists($filePath) ? file_get_contents($filePath) : 0; // Increment the count and overwrite the file, writing the new value file_put_contents($filePath, ++$count); $file = "waitingroom_download.txt"; //Path to your *.txt file $contents = file($file); $string = implode($contents); echo "This programme has been downloaded ".$string. " times "; $timestamp = (date('d/m/Y - H:ia'));$to = "terry@mechan.orangehome.co.uk"; $subject = "The Waiting Room hit from mobile"; $message = "The Waiting Room has now been downloaded ".$string. " times ".$timestamp.""; $from = "terrymechan@morgle.com"; $headers = "From:" . $from; //mail($to,$subject,$message,$headers); ?> When an old friend comes to say goodbye to Dave, the memories they share lead to an astonishing revelation for Dave as he comes to terms with his life and imminent death. Starring The Waiting Room, wriiten by Terry Mechan, was Directed by John Bassett and Produced by Laura Manley |