| View previous topic :: View next topic |
| Author |
Message |
J Guest
|
Posted: Thu Sep 09, 2004 8:40 am Post subject: parsing Content-Type I need fname |
|
|
Hi
Is there any modification about parsing Content-Type to get 'Name'
Thanks |
|
| Back to top |
|
 |
J Guest
|
Posted: Thu Sep 09, 2004 11:06 am Post subject: Voila fname |
|
|
Something like ....
//------------------------------------------------------------------
function parseContentTypeFileName($headersLen)
{ $partfname=-1; // By default, unknown filename
$tmp=$this->curp+$headersLen;
while($this->curp<$tmp)
{ if ( $this->data[$this->curp] == 142)
{ $this->curp++;
MMSDecoder::parseTextString($aux);
$partfname=$aux;
}
else $this->curp++;
}
return $partfname;
}
$part->fname=MMSDecoder::parseContentTypeFileName($headersLen);
//------------------------------------------------------------------
Bye  |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Fri Sep 10, 2004 1:36 pm Post subject: |
|
|
Cool! Nice hackish solution
Thanks for that  |
|
| Back to top |
|
 |
|