草庐IT

com-server

全部标签

javascript - 无法将消息发布到 http ://www. youtube.com。收件人的来源为 https ://www. youtube.com

我的应用在http://beta.billboard.fm在播放一首歌曲后,在我的正常浏览session中产生错误。如果我以隐身模式重新加载页面,该应用程序将完全正常运行。我最近才开始遇到这些问题。我已完成清除所有缓存并再次运行,但只是在抛出相同错误之前暂时运行。此外,我已禁用所有浏览器扩展。但是,无论我做什么,我都无法从YoutubeAPI抛出这个错误:Unabletopostmessagetohttp://www.youtube.com.Recipienthasoriginhttps://www.youtube.com看起来安全协议(protocol)不匹配。我尝试将它们更改为ht

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 - PDO <-> SQL Server exec(在 Laravel 中)返回空数组

PHP、Laravel、调用$db->select("EXEC[dbo].[sp_StoredProc1]1,3,1,'2016-06-1200:00:00','2016-09-1200:00:00'");结果-空数组!!!通过SQLServerManagementStudio调用相同的函数:EXEC[dbo].[sp_StoredProc1]1,3,1,'2016-06-1200:00:00','2016-09-1200:00:00'结果-有效表格。热烈感谢任何想法,为什么会发生这种情况 最佳答案 原因-是MSSQLServer的

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 - SQL Server 2005 express 到 2008 标准问题

我有一个PHP应用程序可以在以下系统上正常运行:网络应用:PHP5.2.3版操作系统:WindowsServer2003Standard32位数据库:SQLServer2005(express)网络服务器:IIS6我正在尝试让同样的事情在以下方面运行:网络应用:PHP5.2.11版操作系统:WindowsServer2008Standard64位数据库:SQLServer2008Standard64位网络服务器:IIS7完成我通常执行的安装和设置后,phpinfo()正在运行,但没有MSSQL部分。我环顾四周,发现一些MS文档使用php_sqlsrv.dll设置系统并尝试过,但它似乎使

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

php - 用于 PHP sqlsrv_connect() 的 SQL Server 驱动程序使用忽略的错误填充 PHP 错误日志

每次我的PHP应用程序连接到我的SQLServer数据库时,以下内容都会被放入PHP错误日志中:[01-Apr-201112:39:16]sqlsrv_connect:SQLSTATE=01000[01-Apr-201112:39:16]sqlsrv_connect:errorcode=5701[01-Apr-201112:39:16]sqlsrv_connect:message=[Microsoft][SQLServerNativeClient10.0][SQLServer]Changeddatabasecontextto'my_table_name'.[01-Apr-201112:

php - SQL Server 2008 数据库 + PHP 中的 UTF-8

我想用PHP在MSSQL2008数据库中存储数据。我遇到了像äöüß这样的字母问题,它们在数据库中显示不正确,当我在网站上显示时。当我使用PHP对输入数据进行utf8_encode并使用utf8_decode对输出数据进行utf8_decode时,它​​会起作用。还有其他更简单的方法可以解决这个问题吗? 最佳答案 我已经解决了这个问题,问题是PHP的mssql驱动程序坏了(找不到bugs.php.net的链接,但它在那里)并且在涉及到nchar和nvarchar字段a时失败了utf8.您需要稍微转换数据和查询:SELECTsome_

php $SERVER ['PATH_INFO' ] 和 apache mod_rewrite

我这里有.htaccess文件:Options+FollowSymLinksRewriteEngineonRewriteBase/RewriteCond%{REQUEST_FILENAME}!-fRewriteCond%{REQUEST_FILENAME}!-dRewriteRule.*index.php[QSA,L]并且重写有效,但是当我尝试http://site.com/example时,我的index.php中没有path_info.这个话题我已经红了https://stackoverflow.com/questions/1442854/codeigniter-problem-w