Using ./radar/ec-lightning-test-en.txt as test file.
Now date='Sat, 21 Dec 2024 17:06:17'
File says='Sat, 21 Dec 2024 17:06:17'
Write and read-back successful.. contents identical -- ec-lightning.php cache should work fine with $lightningDir = './radar/'; setting.
Your legendLightning.png is correctly placed in ./radar/ and shows like this:
To run the ec-lightning.php script, you also need GD enabled in PHP.
Make sure the following displays Yes for all items (except for 'WebP Support', 'T1Lib Support' and 'JIS-mapped Japanese Font Support' which are not needed).