Re: Bizzare mime-type header() problem

From: Date: Tue, 05 Nov 2002 00:28:53 +0000
Subject: Re: Bizzare mime-type header() problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-122718@lists.php.net to get a copy of this message
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") {
    word_headers();
} echo $output; Chris Boget wrote:
Ok, so the make up of the script that I'm having issues with looks like this: (pseudocode) ------------------------- validation function { global $PHPSESSID; validate using $PHPSESSID; } process and define output switch( $action ) { case "msword":
    word headers();
case "html": echo output; break; } -------------------------


« previous php.general (#122718) next »