To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini

时间:2017-03-02 23:37:23

标签: php phpmailer

I'm trying to create a phpmailer that I took straight out of the phpmailer documents and suited it to what I needed. So it should work. Unfortunately, I'm getting the above error. I've bought a web hosting package so that i could change the php.ini file by adding always_populate_raw_post_data' = '-1' to the file. I'm still getting the above error. Any ideas on how to fix this issue? Thanks for your help.

1 个答案:

答案 0 :(得分:0)

保存更改后,重新启动您的网络服务器了吗?

如果你这样做,我的猜测就是你编辑了一个假人php.ini

您可以使用<?php phpinfo(); ?>并搜索loaded configuration file以查看您需要修改的php.ini的位置。

询问您的托管服务提供商,如果他们发现您已更新文件,他们应该能够提供更多帮助。