Daniel3356 / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 1 forks source link

Unable to load reCaptcha ServerSide: PHP #108

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. added the recaptchalib.php from 
http://code.google.com/p/recaptcha/downloads/detail?name=recaptcha-php-1.11.zip&
can=2&q=
2. I added the PHP code with my public key that i signed up. 
3. I use simple form nothing else contents to be add, just recaptcha it own to 
test

What is the expected output? What do you see instead?
I should be able to see the dialog of random words, but it turn out to be plain 
white page. the code stoped at: 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title>Untitled Document</title> 
</head> 

<body> 

<form action="verify.php" method="post"> 

What version of the product are you using? On what operating system?
Apache 2.2
OS: OS X Snow Leopard Server.
PHP 5

Please provide any additional information below.
Full code from the test_captcha.php:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test reCaptcha</title>
</head>

<body>

<form action="verify.php" method="post">
        <?php
        //reCaptcha
          require_once("recaptchalib.php");
          $publickey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // you got this from the signup page
          echo recaptcha_get_html($publickey);
        ?>
            <input type="submit" />
 </form>

</body>
</html>

Original issue reported on code.google.com by kelvin.c...@gmail.com on 1 Apr 2011 at 1:24

GoogleCodeExporter commented 8 years ago
I just solved the problem, It's to do with permission on file! 
I have to put everyone access to be read only now it's working spot on.

Original comment by kelvin.c...@gmail.com on 1 Apr 2011 at 2:42