How to add a line of text to a text file every thursday with PHP?
<p>I have a textfile with a list of the newest minecraft snapshots which then gets displayed on my personel site, the problem is that I have to manually add the snapshot name every thursday and I cant find any way to automate this process.</p>

<p>The text file is laid out like this:</p>

<p>12w26a;</p>

<p>12w25a;</p>

<p>12w24a;</p>

<p>'12' stands for the current year, 'w' just stands for week, '26' indicated what number snapshot it is and 'a' isn't really important but has to be there.</p>

<p>I found some PHP online to automate the process but apparently it no longer works</p>

<p><a href="http://pastebin.com/LP3WKCiZ" rel="nofollow">http://pastebin.com/LP3WKCiZ</a></p>

<p>Any help would be much appreciated. :)</p>

<p>EDIT:
Here is a live demo of the above code (not sure why its not working since Mojang have gone back to just using jar files again)
<a href="http://langkid1.me/pre/" rel="nofollow">http://langkid1.me/pre/</a></p>
