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 a set of pages which are all used to put together various MySQl queries, they then pass their query to another page which generates a CSV file. At the minute though it opens a box that asks whether you want to open or save the file.
How can I change this behaviour so it automatically saves the file instead.
Cheers, but that's what I'm trying to avoid. I need to specify a location in the php script, and then it should save it to that location automatically, without the user doing anything.
You can't. Not because it's hard to do, or because I don't know how to do it, but because if browsers let webpages do that, it would be a tremendous security problem.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
That would be a query run on the server and allow you to specify where on the server to store the resulting file. It would have nothing to do with the client's browser.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.