第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

AWS elasticbeanstalk 上 PHPMailer 實(shí)施的故障排除建議

AWS elasticbeanstalk 上 PHPMailer 實(shí)施的故障排除建議

PHP
慕標(biāo)琳琳 2022-12-03 10:41:15
在 AWS elasticbeanstalk 上部署一段代碼,向用戶發(fā)送電子郵件驗(yàn)證帳戶創(chuàng)建。我測試了電子郵件代碼,它可以在我的本地機(jī)器上運(yùn)行。為了在服務(wù)器上測試它,我編寫了這個(gè)測試用例并且它有效。但是當(dāng)它被應(yīng)該使用它的模塊調(diào)用時(shí),它就會(huì)中斷。我需要故障排除方面的幫助。由于同一個(gè)模塊被 2 個(gè)不同的模塊(test 和 prod)調(diào)用,并且它與 test 一起工作,我傾向于認(rèn)為它與調(diào)用模塊有關(guān),但除了 include 語句的格式之外,我沒有看到它會(huì)如何破裂。工作測試代碼:試驗(yàn)結(jié)果:錯(cuò)誤:[Wed Apr 01 16:45:53.262139 2020] [php7:notice] [pid 10670] [client 136.55.180.140:29275] Array\n(\n    [count] => 1\n)\n, referer: http://bluetooth-env-test.eba-brqgvwur.us-east-2.elasticbeanstalk.com/WebApp/new_user.php[Wed Apr 01 16:47:40.599465 2020] [php7:warn] [pid 10669] [client 136.55.180.140:29293] PHP Warning:  require_once(../PHPMailer/PHPMailer.php): failed to open stream: No such file or directory in /var/app/current/WebApp/utils/emailVerification.php on line 13, referer: http://bluetooth-env-test.eba-brqgvwur.us-east-2.elasticbeanstalk.com/WebApp/new_user.php[Wed Apr 01 16:47:40.599502 2020] [php7:error] [pid 10669] [client 136.55.180.140:29293] PHP Fatal error:  require_once(): Failed opening required '../PHPMailer/PHPMailer.php' (include_path='.:/usr/share/pear7:/usr/share/php') in /var/app/current/WebApp/utils/emailVerification.php on line 13, referer: http://bluetooth-env-test.eba-brqgvwur.us-east-2.elasticbeanstalk.com/WebApp/new_user.php共享模塊的源代碼:它在 require_once('../PHPMailer/PHPMailer.php'); 處中斷<?php// session_start();    use PHPMailer\PHPMailer\PHPMailer;    use PHPMailer\PHPMailer\SMTP;    use PHPMailer\PHPMailer\Exception;function emailVerify($email, $hash){require_once('../PHPMailer/PHPMailer.php');require_once('../PHPMailer/SMTP.php');require_once('../PHPMailer/Exception.php');echo (extension_loaded('openssl')?'SSL loaded':'SSL not loaded')."\n";$mail = new PHPMailer(true);try{$mail->SMTPDebug = SMTP::DEBUG_SERVER;$mail->SMTPOptions = array(                  'ssl' => array(                      'verify_peer' => false,                      'verify_peer_name' => false,                      'allow_self_signed' => true                  )              );
查看完整描述

1 回答

?
泛舟湖上清波郎朗

TA貢獻(xiàn)1818條經(jīng)驗(yàn) 獲得超3個(gè)贊

根據(jù) Synchro 的輸入,有效的解決方案是:


    require_once( __DIR__.'/../PHPMailer/PHPMailer.php');

    require_once( __DIR__.'/../PHPMailer/SMTP.php');

    require_once( __DIR__.'/../PHPMailer/Exception.php');


查看完整回答
反對(duì) 回復(fù) 2022-12-03
  • 1 回答
  • 0 關(guān)注
  • 130 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)