Hi all,
(not sure if this should perhaps be placed in the Newbie section)
I want to do something quite simply but my book is slightly lacking in file manipulation.
Currently my php produces a bill which my users can read but this is a dynamic php document and it works fine until a whole month goes by and they are a bit slow in paying. The next time they view the page it has two months quantity on instead of the one and I have got round it but I would prefer to have one bill per month.
Could I save the html file (without any php) that is output into a file which could rest on the server until called?
I have been trying to do this with a
@copy($file, $path.$newfilename); but on reading other entries in this form I am wondering whether an fput would be better ... and what is the difference?
Thanks