草庐IT

m_ssl_client_method

全部标签

php - 获取用户信息 Google-PHP-Client 问题?

首先,我只想说一下我需要从用户那里获得哪些信息。全名(名字/姓氏)电子邮件地址(主要帐户,而不是@google-plus.com)位置(国家、州、城市、地址)YouTube用户名为了获得所有这些信息,我继续下载/安装位于here的PHP客户端库.由于这是我第一次使用API,我环顾四周,发现了以下范围:$client->setScopes(array('https://www.googleapis.com/auth/youtube.readonly','https://www.googleapis.com/auth/userinfo.profile','https://www.googl

php - 谷歌地图 PHP CURL 问题 "Your client has issued a malformed or illegal request. That’ s 我们都知道。”

我有一个使用CURL和GoogleMapsAPI返回地址坐标的函数。代码如下:functionget_coordinates($address_string){$address=urlencode($address_string);$url="https://maps.googleapis.com/maps/api/geocode/json?address=".$address."&key=".$api_key;$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRANSFER

php - 发生客户端错误 : Could not create storage directory:/tmp/Google_Client/00

此错误对YoutubeAPIv3.0意味着什么:Aclienterroroccurred:Couldnotcreatestoragedirectory:/tmp/Google_Client/00我在Google的文档中使用PHPYoutubeAPI找到here. 最佳答案 我在不更改GoogleAPI的任何行的情况下解决了这个问题。在您的PHP代码中,您只需要指定缓存文件夹所在的位置:$config=newGoogle_Config();$config->setClassConfig('Google_Cache_File',arra

PHP 面向对象 : Method Chaining

我有以下代码,$value);}publicstaticfunctiondraw(){self::$params;}}$test=Templater::assign('key','value');$test=Templater::draw();print_r($test);如何更改此脚本以便我可以使用它?$test=Templater::assign('key','value')->assign('key2','value2')->draw();print_r($test); 最佳答案 您不能使用MethodChaining使用静态

php - pear channel 更新 pear.php.net 后的 SSL 问题

我在Windows7上安装了XAMPP。更新pear.php.netchannel后:pearchannel-updatepear.php.net并尝试安装新包,例如peclinstallzmq,遇到以下消息并且无法安装任何包:Connectionto'ssl://pecl.php.net:443'failed:Unabletofindthesockettransport"ssl"-didyouforgettoenableitwhenyouconfiguredPHP?我在网上搜了好久,想解决也解决不了。谁能帮我解决这个问题,原因是什么? 最佳答案

php - [Microsoft][SQL Server Native Client 11.0][SQL Server]无效的对象名称

我想访问MSSQLServer并进行选择查询。我已经安装了dll文件并正在使用sqlsrv_query。连接成功但我得到:[Microsoft][SQLServerNativeClient11.0][SQLServer]Invalidobjectnameaserror我正在使用PHP5.3.1版连接后我有这段代码$sql="SELECTid,latitude,longitudefromjob";$stmt=sqlsrv_query($conn,$sql);if($stmt===false){die(print_r(sqlsrv_errors(),true));}while($row=s

php - 使用 cURL 的 Mandrill CA SSL 错误

我正在试用Mandrill。看起来很好。我注册了一个帐户并获得了一个apikey。从下载MandrillPHP包装器https://bitbucket.org/mailchimp/mandrill-api-php这篇文章似乎有一个很好的hello-worldMandrill电子邮件示例,所以我试了一下:SimplephpfunctiontosendanemailwithMandrill不断收到此错误:APIcalltotemplates/addfailed:ProblemwiththeSSLCAcert(path?accessrights?)我遵循了这些S.O.的说明。帖子:error

php - 警告 : ssh2_connect(): Failed overriding server to client COMP method

我在为PHP中的SSHsession启用压缩时遇到问题。部分代码:$methods=array('server_to_client'=>array('comp'=>'zlib'));if(!($con=ssh2_connect("10.214.201.31",22,$methods))){...执行期间的警告(通过httpd或phpcli):Warning:ssh2_connect():FailedoverridingservertoclientCOMPmethod压缩不起作用(通过ssh2_scp_recv下载测试文件的时间没有改变)。设置客户端到服务器压缩后出现类似警告。PHPVe

php - 让 SSL 在 Xampp 中工作 - 访问禁止错误

我正在尝试让Xampp在https中工作,但我遇到了一些问题。到目前为止我做了什么:mod_ssl.so已加载php_openssl.dll已加载httpd-ssl.conf中的DocumentRoot已从C:/xampp/htdocs更改为C:/xampp/,因为这是我网站的所有目录所在的位置。我需要更改httpd-ssl.conf中的服务器名称吗?编辑:我是否需要在端口443和80上的httpd-vhosts.conf中添加虚拟主机?另外,Xampp是否带有内置的SSL证书等? 最佳答案 我认为最好的方法是为您正在开发的每个项目

php - curl 错误 (35) : error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 unrecognized name

我一直在使用以下代码块通过cURL从HTTPS网站收集数据。$q='https://www.example.org/';//forexample$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$q);curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,FALSE);curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE