简体   繁体   中英

why I have file_get_content warning

I used file_get_content() to read from the uploaded image temp file and store in database. Everything is work fine except this warning. It show every page of my site. And there is no such page " 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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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