Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在 php 页面中设置sendmail_path使用,而不更改文件吗?像这样 :ini_setphp.ini
sendmail_path
ini_set
php.ini
ini_set("SMTP","smtp.gmail.com"); ini_set("smtp_port","587");
我的应用程序将在共享服务器上运行,我们无法更改服务器的配置文件。这是我在这里的第一个问题,因此对任何错误表示歉意。
根据手册,您只能从php.ini或设置此参数httpd.conf。即可以从 =PHP_INI_SYSTEM
httpd.conf
PHP_INI_SYSTEM