Britain's New Electric Car Industry
$filePath = 'electric.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 = "electric.txt"; //Path to your *.txt file $contents = file($file); $string = implode($contents); echo "This programme has been downloaded ".$string. " times "; ?>
Britain's car industry is about to redesign electric cars to be either cheaper or to have longer range. A key to achieving this will be to make changes to the batteries currently used in electric vehicles .
|