I was trying to include reCaptcha on my web form, so i started following the instructions from this site
it said to download recaptchalib.php from the google site then place that file on my server. Then i had a php script like this to process the form when submit was pressed:
<?php
require_once ('recaptchalib.php');
foreach ($_POST as $key => $value) {
echo '<p><strong>' . $key.':</strong> '.$value.'</p>';
}
?>
It just echos the form variables.
When i press submit from my web form, i was shocked to see that it dumped out the contents of this website
https://github.com/google/recaptcha/blob/1.0.0/php/recaptchalib.php
and then dumped the form variables underneath.
So basically the require_once line in the php script is causing it to dump the entire contents of https://github.com/google/recaptcha/blob/1.0.0/php/recaptchalib.php
How that can ever happen? is recaptchalib.php dumping the website?
I cant get it to stop doing that, does anybody have an explanation?
Its the most bizarre thing i ever seen!!!
Thanks