Re: [PHP] Bizzare mime-type header() problem

2002-11-05 Thread Chris Boget
Your pseudocode is incomplete, because you do not show us where you call this mysterious function that validates using $PHPSESSID. The call is in the location where I have it defined. Also, if that is really all your switch consists of, you're not really gaining anything over using a

[PHP] Bizzare mime-type header() problem

2002-11-04 Thread Chris Boget
Ok, so I've a script that outputs HTML. If a particular argument is passed to that script, it sends the following header commands before it echoes out any HTML: header( Content-Disposition: inline; filename=policy.doc ); header( Content-type: application/msword ); so that it opens up and

Re: [PHP] Bizzare mime-type header() problem

2002-11-04 Thread Chris Boget
But why? Why is PHP echoing out something it should not be echoing? The validation doesn't fail so as such, the text should never be sent to stdout (the browser). Or am I misunderstanding something? Ok, I figured out what my problem was and I'd very much appreciate if someone who was

Re: [PHP] Bizzare mime-type header() problem

2002-11-04 Thread Chris Shiflett
Your pseudocode is incomplete, because you do not show us where you call this mysterious function that validates using $PHPSESSID. Also, if that is really all your switch consists of, you're not really gaining anything over using a simple if construct: if ($action == msword) {