note 102030 deleted from function.imap-fetchbody by danbrown

From: Date: Mon, 24 Jan 2011 14:05:08 +0000
Subject: note 102030 deleted from function.imap-fetchbody by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176243@lists.php.net to get a copy of this message
Note Submitter: TheDocTor ---- hey people.. i need help in downloading attachments from gmail.. what i get so far is the name of the attached file and I'm just providing a link to it.. but I've not succeed in providing a "Save as" and "Open" window.. This is what I have so far.. if ($numparts > 1) { foreach ($structure->parts as $part) { if (($part->disposition == "ATTACHMENT") || ($part->disposition == "attachment")) { $fileName = "<a href='#'>".$part->dparameters[0]->value."</a>"; $message = imap_fetchbody($inbox,$email_number,1.1); } else $fileName = "None"; } } ps: I've tried using header() to modify the headers but I get those warnings because cause I have to echo some tags before it..

« previous php.notes (#176243) next »