如何解决PHP提示Warning: fsockopen() has been disabled for security reasons in – 与你同行·老实孩子·某知名博客

如何解决PHP提示Warning: fsockopen() has been disabled for security reasons in

/ 3评 / 0

今天在调试前几天共享的程序时候,看到一个提示:

Warning: fsockopen() has been disabled for security reasons in /wwwroot/FTP1EE7B/htdocs/inc/Taoapi_Util.php on line 807

PHP程序开头加上:

@error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING);

  1. 52lmm说道:

    请问这段代码加在哪里呢?我的站出现了一样的问题 请回复 谢谢

  2. 老实孩子说道:

    @52lmm 已经说的很清楚了啊“PHP程序开头”

  3. 小梦说道:

    还是不太明白,哪个程序呢?提示所给行相关的php程序的最开始加吗?

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注