【发布时间】:2017-03-08 04:52:37
【问题描述】:
当我尝试将文件附加到我的上传表单时,它给了我这个错误:
致命错误:1238行/home/content/j/o/h/johnmunro/html/upload/include/class.phpmailer.php中允许的内存大小为67108864字节已用尽(试图分配26990378字节)
这里是 1238 上明显导致此问题的代码行。谁能帮帮我。
/**
* Encodes string to requested format. Returns an
* empty string on failure.
* @access private
* @return string
*/
function EncodeString ($str, $encoding = 'base64') {
$encoded = '';
switch(strtolower($encoding)) {
case 'base64':
/* chunk_split is found in PHP >= 3.0.6 */
$encoded = chunk_split(base64_encode($str), 76, $this->LE);
break;
case '7bit':
case '8bit':
$encoded = $this->FixEOL($str);
if (substr($encoded, -(strlen($this->LE))) != $this->LE)
$encoded .= $this->LE;
break;
case 'binary':
$encoded = $str;
break;
case 'quoted-printable':
$encoded = $this->EncodeQP($str);
break;
default:
$this->SetError($this->Lang('encoding') . $encoding);
break;
}
return $encoded;
}
【问题讨论】:
标签: php forms attachment email-attachments