草庐IT

ssl-connection

全部标签

php - Composer : how to add a dependency without network connection?

我的专业网络阻止互联网访问。几个月前,我从存档(包含composer.json文件)和composer.phar的存档中下载了Silex框架,然后通过HDD将它们传输到我的桌面上。我自定义的composer.json:{"name":"user/silex","require":{"silex/silex":"1.2","twig/twig":">=1.8,它工作正常,我的自动加载定制也是如此。今天我想添加monolog/monolog包,所以我从另一台计算机手动导入它。我将它放入我的vendor文件夹中,并将以下行添加到我的composer.json文件中:,"monolog/mon

php - 使用 SSL 时是否有引用 header ?

使用SSL时域内是否有引用header? 最佳答案 IfawebsiteisaccessedfromaHTTPSecure(HTTPS)connectionandalinkpointstoanywhereexceptanothersecurelocation,thenthereferrerfieldisnotsent.TheupcomingstandardHTML5willsupporttheattribute/valuerel="noreferrer"inordertoinstructtheuseragentnottosendar

php - Opencart 2.2.x ssl 用于所有请求

我安装了opencart最新版本,我想为url启用所有ssl在管理员中设置SSL启用在config.php中,admin和category都更改为https访问权限RewriteEngineOnRewriteBase/RewriteRule^sitemap.xml$index.php?route=feed/google_sitemap[L]RewriteRule^googlebase.xml$index.php?route=feed/google_base[L]RewriteRule^system/download/(.*)index.php?route=error/not_found

php - SMTP 错误 : Could not connect to SMTP host

我有这段代码,在我的本地服务器上一切正常。电子邮件发送没有任何问题。但是现在我将内容传递给网络服务器,我得到了这个错误...SMTPError:CouldnotconnecttoSMTPhost.服务器启用了SSL..正确吗?那么,问题是什么?$mail=newPHPMailer();$mail->IsSMTP();$mail->SMTPAuth=true;//enableSMTPauthentication$mail->SMTPSecure="ssl";//setstheprefixtotheservier$mail->Host="smtp.gmail.com";//setsGMAI

PHP 向服务器发送 XML 请求(TNT Express Connect 定价模块)

我尝试向TNTExpress连接定价模块服务发出httppost请求:$xml=''.PHP_EOL;$xml.=''.PHP_EOL;$xml.=''.PHP_EOL;$xml.='xxxxx'.PHP_EOL;$xml.='xxxxx'.PHP_EOL;$xml.=''.PHP_EOL;$xml.=''.PHP_EOL;$xml.=''.PHP_EOL;$xml.='1.0'.PHP_EOL;$xml.='1.0'.PHP_EOL;$xml.='1.0'.PHP_EOL;$xml.='1.0'.PHP_EOL;$xml.='1.0'.PHP_EOL;$xml.='1.0'.PHP_

带有显式 TLS/SSL 的 PHP curl FTPes

我一直在尝试使用显式TLS/SSL服务器推送到远程FTP,但连接一直超时。它正在连接,但我不知道它在哪里停止,但我假设它与FTP/TLS/SSL控制channel有关。任何帮助将不胜感激。通过FileZilla,我可以毫无问题地连接,但不能通过curl。我可能遗漏了一些东西,希望这里的人知道使用curl重新创建session的最佳方法。这是FileZilla的调试输出和我一直在PHP/curl中处理的示例代码。这是PHP代码,下面是成功的FileZillasession的副本。这里是版本,但我在不同的系统上试过,结果相同。Curl:v7.43.0└─(08:04:00onmaster✹

php - (PHP) 选择 memcache::connect 还是 memcache::pconnect?

我正在使用php::memcache模块连接本地memcached服务器(@127.0.0.1),但我不知道应该使用哪个,memcache::connect()还是memcache::pconnect?memcache::pconnect会不会占用服务器很多资源?非常感谢您的回答! 最佳答案 Memcached使用TCP连接(握手是3个额外的数据包,关闭通常是4个数据包)并且不需要任何身份验证。因此,使用持久连接的唯一好处是您不需要发送额外的7个数据包,也不必担心有剩余的TIME-WAIT。港口几秒钟。遗憾的是,牺牲这些资源的弊端远

php - 无法调用函数 sqlsrv_connect()

我通过了几个问题和建议来解决上述问题,但一点运气都没有。我有以下设置:WindowsServer2008R2xampp-win32-1.8.2-5-VC9-installerSQLSRV30-phpdriversqlncli-MicrosoftSQLServer2008R2NativeClientSetUp我安装了其他所有东西,我在php.ini文件中有以下内容下面的代码显示了php驱动程序所在的位置:;Onwindows:extension_dir="C:\xampp\php\ext"以下是windowsextensions下extension=php_pdo_sqlsrv_54_t

php - 无法连接到本地主机中的 wordpress (GET http://localhost/net::ERR_CONNECTION_REFUSED)

我只是在虚拟网络托管中备份wordpress数据库和public_html文件夹。然后我将它们移动到本地MAMP。但是当我输入http://localhost:8888/,它只是转移到http://localhost.错误消息(GEThttp://localhost/net::ERR_CONNECTION_REFUSED)显示在chrome中。有人能给我一些提示吗?我试图在/htdoc/test中放置一个带有echo"debug"的虚拟index.php然后连接到http://localhost:8888/test,它按预期显示“调试”。谢谢。 最佳答案

PHP- file_get_contents 无法打开流 : Connection refused

我正在使用以下API通过IP获取国家/地区代码http://api.hostip.info/country.php?ip='.$IP示例:在本地主机$IP='202.71.158.30';//passtheipasaparameterforfollowURLitwillreturnthecountry$country_code=file_get_contents('http://api.hostip.info/country.php?ip='.$IP);它在这里工作正常并显示国家代码。但它在服务器上显示错误例子:$IP=$_SERVER['REMOTE_ADDR'];$country_