完全滿足了我的需求,贊啦!!
沒實例沒真相... 來看看吧!!
[cpp]//---------------------------------------------------------------------------
void __fastcall TForm4::SpeedButton1Click(TObject *Sender)
{
if(!OpenDialog1->Execute()) return;
Edit1->Text = OpenDialog1->FileName;
}
//---------------------------------------------------------------------------
void __fastcall TForm4::SpeedButton2Click(TObject *Sender)
{
if(!OpenDialog2->Execute()) return;
Edit2->Text = OpenDialog2->FileName;
}[/cpp]
[php]for ($i=1; $i <= $count; $i++) :
$message = $pop3->get($i);
$content = '';
$content_type = '';
$boundary = '';
$bodysignal = 0;
$dmonths = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
foreach ($message as $line) :
if (strlen($line) < 3) $bodysignal = 1;
if ($bodysignal) {
$content .= $line;
} else {
if (preg_match('/Content-Type: /i', $line)) {
[/php]
[html]