I'm new'ish to PHP so please bare with me. I'll try explain what I'm wanting to do.
I'm wanting to write a php script that I can run as a cron job on a weekly basis to re-write the contents of a text file.
Basically, There is a jpg picture on my website that displays depending on whats in the .txt file. This is good as people who admin the site can change this when need be but now I want to be able to change whats in the txt file every friday.
My script needs to go along the lines of.
Open txtfile
delete all text in the file
write "example text"
save file
close
Could anybody help or point me in the right direction. As I said I'm new to php any help would be appreicated.
Thanks
Biggus



Reply With Quote

Bookmarks