简体   繁体   English

为什么我有file_get_content警告

[英]why I have file_get_content warning

I used file_get_content() to read from the uploaded image temp file and store in database. 我使用file_get_content()从上传的图像临时文件中读取并存储在数据库中。 Everything is work fine except this warning. 除此警告外,一切都正常。 It show every page of my site. 它显示了我网站的每个页面。 And there is no such page " footer.php ". 而且没有这样的页面“ footer.php ”。 Is it the server problem or I need to change that function. 是服务器问题还是我需要更改该功能。

Warning: file_get_contents( http://admanager.nethosting.com/getads/www.mogoke.5gbfree.com/ ): failed to open stream: Connection timed out in /usr/share/php/footer.php on line 11 警告:file_get_contents( http://admanager.nethosting.com/getads/www.mogoke.5gbfree.com/ ):无法打开流:第11行的/usr/share/php/footer.php中的连接超时

The problem is another invocation of file_get_contents , which downloads advertisements from a remote server, but that download fails due to network problems or a firewall. 问题是file_get_contents 另一个调用,该调用从远程服务器下载广告,但是由于网络问题或防火墙,下载失败。

This looks very much like your code or server had a security vulnerability and someone uploaded code that includes ad banners on your website (but the money for the clicks of course goes to the crooks instead of you). 这看起来很像您的代码或服务器存在安全漏洞,并且有人在您的网站上上传了包含广告横幅的代码(但是,点击的钱当然是骗子而不是您)。 Removing the malware (ie the added advertisement lines, probably heavily obfuscated) should suffice. 删除恶意软件(即添加的广告行,可能很容易混淆)就足够了。 See this security.stackexchange.com question for more details. 有关更多详细信息,请参见此security.stackexchange.com问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM