Sign in:
Username:
Password:  
»Forgot your password?

Home | Forum | How to Protect Your Web Form | How to Protect Your Email | Sign Up

Insure yourself from spam! The Anti Spam Insurance Company - ProtectWebForm!

Forum - Will not work

PostMessage
sadievan
2007-03-26 00:33:55
I have installed for php. This is the message I get "The image code
you have provided does not match the actual one. Hit the 'back' button
of your browser and input the correct code please."

I have pasted the wording in the html file and the php file.
oleg
2007-03-26 10:41:26
Try to read previos discussion, it may help:
http://www.protectwebform.com/forum/topic/92/
sadievan
2007-03-26 16:47:51
OK. I took the @ out of the get_file_contents and added the echo.
Now this is what I get.

Warning: file_get_contents(): URL file-access is disabled in the
server configuration in
/home/content/a/q/u/aquamoonllc/html/process-form.php on line 17

Warning:
file_get_contents(http://protectwebform.com/verify01?vui=8259&vp=r5ghjc9mxb63&ri=66.1.13.141&vs=jyq2d1):
failed to open stream: no suitable wrapper could be found in
/home/content/a/q/u/aquamoonllc/html/process-form.php on line 17
The image code you have provided does not match the actual one. Hit
the 'back' button of your browser and input the correct code please.
oleg
2007-03-26 17:26:25
Well, as it is written in:
http://www.protectwebform.com/forum/topic/90/
try to add new function before the pwf code:
--------------------------------------------
function file_get_contents2($url){
$url_parsed = parse_url($url);
$fd = fsockopen($url_parsed[host], 80);
$data = ''; $header = false;
$reques_url = (strlen($url_parsed[query]) > 0) ?
$url_parsed[path]."?".$url_parsed[query] : $url_parsed[path];
fputs($fd,"GET ".$reques_url." HTTP/1.0\r\n");
fputs($fd,"Host: ".$url_parsed[host]."\r\n");
fputs($fd,"Connection: close\r\n\r\n");
while($line = fgets($fd)) {
if($header) $data .= $line;
if(strlen($line) <= 2) $header = true;
}
fclose($fd);
return $data;
}
--------------------------------------------
and replace
'file_get_contents'
with
'file_get_contents2'
in the code.
sadievan
2007-03-26 17:47:21
I am new to this. Could you please tell me exactly were to insert
this new code. I don't know what you mean by pwf code.

Also the replace file_get_contents with file_get_contents2 is that to
be replaced in my html file where the captcha is located? Thanks for
your help.
sadievan
2007-03-26 17:51:43
Never mind. I figured out what you were telling me to do. Thank you,
Thank you, Thank you. It works.






Post Reply:

You must be logged in to reply.
Post message
Name: 
Email: 
Url: 




Registered users: 88117

Forms protected: 48551

Further Reading & Anti Spam Resources:

Directory


    ©Copyright 2006 ProtectWebForm.com. All rights reserved. Read our Privacy Policy

Page copy protected against web site content infringement by Copyscape