title: How to replace a file with another file of same name which has new content in PHP?
body: <p>I am new to PHP. In my application user when clicks for PDF, a copy on his name will be stored in a server. Next time, when he wants another PDF of different data, even that also will be stored on the same name in the server. I want to replace the old copy with the new PDF. Please tell me how to solve it. Thank You.</p>