I am trying to create and save a file to the root directory of my site, but I don\'t know where its creating the file as I cannot see any. And, I need the file to be overwri
If you are running PHP on Apache then you can use the enviroment variable called DOCUMENT_ROOT. This means that the path is dynamic, and can be moved between servers without messing about with the code.