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 this ocde and it doesn't work as expected. I would like the user to be propmted to download a file named. test.txt with the content from $document. Can anyone shed some light on why this wont work?
When disp is attachement IE will usually ask you about "Open from location" or "Save", there is no way around that, if you select "Don't ask me again" it is locked on that..
The whole point of using disp/attach is to allow for save-as instead of inline opening which is quite normal (and anoying) for pdf and othe docs..