Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php google recaptcha不在safari上工作_Php_Recaptcha - Fatal编程技术网

Php google recaptcha不在safari上工作

Php google recaptcha不在safari上工作,php,recaptcha,Php,Recaptcha,我正试图弄明白为什么验证码在safari上永远不会被证明是正确的,可悲的是,我没有苹果的产品,只能依靠一个朋友帮我测试。在我开始要求他做的不仅仅是提交表单之前,有没有人能看到safari除了opera、iexplorer、firefox和chrome之外可能不会处理的代码问题 if(isset($_POST['SubButton'])){ $url = 'https://www.google.com/recaptcha/api/siteverify'; $private

我正试图弄明白为什么验证码在safari上永远不会被证明是正确的,可悲的是,我没有苹果的产品,只能依靠一个朋友帮我测试。在我开始要求他做的不仅仅是提交表单之前,有没有人能看到safari除了opera、iexplorer、firefox和chrome之外可能不会处理的代码问题

if(isset($_POST['SubButton'])){     
    $url = 'https://www.google.com/recaptcha/api/siteverify';
    $privatekey = "******";
    $response = file_get_contents($url."?secret=".$privatekey."&response=".$_POST['g-recaptcha-response']."&remoteip=".$_SERVER['REMOTE_ADDR']);
    $data = json_decode($response);
    if(isset($data->success) && $data->success==true){