Forum Moderators: coopster
I want to run PHP from the browser and get the results in the format I have specified. I am trying to set the mime. I am not very clear how to do this.
You can't run PHP from the browser per se. It's a server-side technology. The mime type will depend on what you generate using PHP. In other words, if you use PHP to
- generate HTML, mime type is text/html
- generate PDF, mime type is ... application/pdf?
- generate CSS, mime type is text/css
- generate PNG, mime type is image/png
Tom