PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have written a php code to save a database backup file on a client's pc. If that file already exists on the client's pc, the file is automatically overwritten. How can i detect if such a file already exists to prevent its overwritting ?
how are you downloading the file? Normally, you the OS handles that, since you can't force the download to really happen, just the prompt to download to happen.
neither of those downloads to a client, they are used to write to the local file system. Displaying a prompt for those would involve checking if the file existed before creating them.