草庐IT

com_error

全部标签

php - 错误 :error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

$ch=curl_init();$clientId="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";$secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";curl_setopt($ch,CURLOPT_URL,"https://api.sandbox.paypal.com/v1/oauth2/token");curl_setopt($ch,CURLOPT_HEADER,false);curl_setopt($ch,CURLOPT

php - 谷歌-api-php-客户端 "error": "unauthorized_client"

我们正在尝试构建一项服务,以在我们的gsuite域中导出googledrive文件。我们正在使用https://github.com/google/google-api-php-client我们创建了一个服务用户,下载并保存了用户凭证,并授予服务用户全域访问权限。下面是最简单的例子(就像我发现的每个文档一样):putenv('GOOGLE_APPLICATION_CREDENTIALS='/service-account-credentials.json');$client=new\Google_Client();$client->setAuthConfig('service-acco

php - 教义\DBAL\Driver\PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes")

我尝试使用GitHub在我的Laravel项目中安装voyager管理包。它有3个步骤来完成。第3步我有这个错误:Exceptiontrace:1Doctrine\DBAL\Driver\PDOException::("SQLSTATE[42000]:Syntaxerrororaccessviolation:1071Specifiedkeywastoolong;maxkeylengthis767bytes")B:\xampp\htdocs\gholi\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:1442P

php - 与 mail.google.com、cURL 和 http ://validator. w3.org/checklink 混淆

我正在使用cURL构建一个基本的链接检查器。我的应用程序有一个名为getHeaders()的函数,它返回一个HTTPheader数组:functiongetHeaders($url){if(function_exists('curl_init')){//createanewcURLresource$ch=curl_init();//setURLandotherappropriateoptions$options=array(CURLOPT_URL=>$url,CURLOPT_HEADER=>true,CURLOPT_NOBODY=>true,CURLOPT_FOLLOWLOCATION

php - 使用 php 下载 torrent 形式的 torcache.com。

由于服务器正在使用gzip加密,我在下载torrent时遇到错误。然后我用了这个然后结果也是无效的torrentwww.AwesomePHP.com*//*Function:downloadremotefile*//*Parameters:$url->todownload|$dir->wheretostorefile|$file_name->storefileasthisname-ifnull,usedefault*//*$path_parts=pathinfo("http://torcache.com/torrent/56A250DC4CD64F6C304631897F1108D41

php - 在 PHP 中如何读取从 COM 对象返回的多维变体数组?

我正在使用返回多维VARIANT数组(vt_array)的COM对象,并且我正在尝试从数组中读取值。当我使用print_r($mdArray)时,它显示variantObject。(variant_get_type($mdArray)返回8204。)我尝试使用foreach($mdArrayas$oneArray)但我收到消息:Warning:Loader::getfields()[loader.getfields]:Canonlyhandlesingledimensionvariantarrays(thisarrayhas2)inC:\Inetpub\wwwroot\root\scr

domdocument - 未捕获的异常 'DOMException',消息为 'Not Found Error'

基本上我正在为我的CMS编写一个模板系统,我希望有一个模块化结构,其中涉及人们放入如下标签:或然后我想在我的php中找到它并替换为动态html。这里有人将我指向DOMDocument,但我已经遇到了一个问题。我试图找到所有我的模板中的标签,并用一些简单的html替换它们。这是我的模板代码:CMS这是我的PHP:$template=newDOMDocument();$template->load("template/template.tpl");foreach($template->getElementsByTagName("include")as$include){$element='

php - fatal error : Maximum execution time of 30 seconds exceeded when i execute daily run from my website

我正在使用来自网站供应商的phpMyAdmin。我似乎无法编辑php.ini设置页面。那么在哪里设置ini_set('max_execution_time',300);?在我的Php编码页面中?或任何设置页面? 最佳答案 如果您不能编辑php.ini配置,那么您可以在您的PHP页面顶部设置以下内容:ini_set('max_execution_time',300);//300seconds=5minutes//ORset_time_limit(300);//Ifsettozero,notimelimitisimposed.注意:se

PHP/RegEx - 通过检测 .com/.net/.org/.edu 等将 URL 转换为链接

我知道有很多问题要求帮助将URL转换为字符串中的可点击链接,但我还没有找到我正在寻找的东西。我希望能够匹配以下任何示例并将它们变成可点击的链接:http://www.domain.comhttps://www.domain.nethttp://subdomain.domain.orgwww.domain.com/foldersubdomain.domain.netsubdomain.domain.edu/folder/subfolderdomain.netdomain.com/folder我不想匹配random.stuff.separated.with.periods。编辑:请记住,这

php - SOAP 错误 fatal error : Uncaught SoapFault exception: [HTTP] Could not connect to host

我在使用PHPSoapClient发送SOAP请求时遇到此错误:Fatalerror:UncaughtSoapFaultexception:[HTTP]Couldnotconnecttohostin/var/www/phpwebservice/soap-client.php:6Stacktrace:#0[internalfunction]:SoapClient->__doRequest('__call('getCatalogEntry',Array)#2/var/www/phpwebservice/soap-client.php(6):SoapClient->getCatalogEnt