I.T. Mate
                      Product Support
Menu: Home | Blog | Contact Us | Documents | Forums | Knowledge Base | Search | Services RSS

.... NEVER FORGET! ....
Quick Search
 

Products
AB Extension Pack
ACF Notes
ActiveScan Cleaner
B Gone
Bit Defender Cleaner
Black Jack
Chess
Cookie Info
Cup Holder
Dir 2 File
DUN AC
FreeScan Cleaner
Guestbook Generator
Housecall Cleaner
hpHosts
hpObserver
Index.dat QV
Index.dat Suite
ISPs Nightmare
Mouse Mat
Outlook Export
PUI
Quick Info
Quick Ren
RF Types
Rip Wiz 2003
S Lock
SMTP Finder
Spambot Search Tool
vURL Desktop Edition
Home > Knowledge Base > [function.file-get-contents]: failed to open stream: HTTP request failed! (KBID# 33)

I.T. Mate Knowledge Base - KBID# 33

[function.file-get-contents]: failed to open stream: HTTP request failed! (KBID# 33)

Symptoms

"[function.file-get-contents]: failed to open stream: HTTP request failed!" occurs after installing the Spambot Search Tool.

Cause

This error occurs when file_get_contents() is not available.

Resolution

To resolve this, you need to change the file_get_contents() call in the Spambot Search Tool mod, to use cURL instead.

To do this, open the file containing your mod (e.g. functions_users.php for phpBB, wp-comments-post.php and wp-login.php for WordPress), and change;

$fspamcheck = file_get_contents('http://temerc.com/Check_Spammers/check_spammers_plain.php?name='.$comment_author.'&email='.$comment_author_email.'&ip='.$ip);


To;

//$fspamcheck = file_get_contents('URL');
$curl = @curl_init();
curl_setopt($curl, CURLOPT_URL, 'URL');
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$fspamcheck = @curl_exec($curl);
curl_close($curl);


Remembering to replace 'URL', with the URL from your current $fspamcheck string, for example (note this example is specific to WordPress);

http://temerc.com/Check_Spammers/check_spammers_plain.php?name='.$comment_author.'&email='.$comment_author_email.'&ip='.$ip


Additional Information

Help, allow_url_fopen is disabled on my host!
http://temerc.com/forums/viewtopic.php?f=71&t=6789

References

None


The information in this article applies to:
  1. Spambot Search Tool
Published: 25/09/2009 19:17:07
Updated:

Print this document | E-mail this document

Give us Feedback! Forums
End User Licence Agreement | Help Us | Privacy Policy | Terms of Use
Copyright 1998 - 2017 I.T. Mate - All Rights Reserved
counselling-valvate
counselling-valvate
counselling-valvate
counselling-valvate
Give us Feedback! Forums