我正在使用 curl 通过 https 将 xml 文件发送到 rightmove API - 他们为我提供了所有证书。
我收到错误:
60SSL 证书问题:无法获取本地颁发者证书Result =
我已经尝试了在其他类似的 stackoverflow 帖子上发现的所有内容,但没有任何效果,我尝试下载旧的 cacert.pem 并更改了 php.ini 中的文件 - 我安装了我的个人信息文件并在浏览器和本地创建了证书机器,没有任何东西可以消除错误 60。
这是我的 PHP :
<?php
$xml = file_get_contents("myxml.xml");
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt ($ch, CURLOPT_CAINFO, dirname(__FILE__).'\mypem.pem');
curl_setopt($ch, CURLOPT_URL, "https://adfapi.adftest.rightmove.com/v1/property/sendpropertydetails");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_REFERER, 'https://adfapi.adftest.rightmove.com/v1/property/sendpropertydetails');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_VERBOSE , 1);
$ch_result = curl_exec($ch);
print curl_errno($ch); …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用以下方法清理数据库中的数字:
update valuations set Telephone = TRIM(Telephone) where 1 = 1
Run Code Online (Sandbox Code Playgroud)
但是实现了0行,并且所有的nunmbers仍然有空格.数据类型是varchar所以我不确定为什么这不起作用 - 任何人都可以帮忙吗?
谢谢
我有一个PHP文件上传器,我们每天上传大约10-15个5mb图像.我在本地有图像上传器,我可以上传图像.我改变了我的php.ini中的所有设置,以确保我有正确的限制.
现在,我已将up-loader放在Windows服务器上并且它具有相同的设置,但有时(并非总是)当我上传10-15个图像时它达到97%并抛出404文档未找到错误.
有没有人有任何想法为什么会发生这种情况?我一直试图对它进行排序,这几天真的令人沮丧.我在iis上使用php 5.6.