草庐IT

fastcgi_param

全部标签

php - Mysqli 抛出 "Warning: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, boolean given"

这个问题在这里已经有了答案:Whattodowithmysqliproblems?Errorslikemysqli_fetch_array():Argument#1mustbeoftypemysqli_resultandsuch(1个回答)关闭2年前。我知道这段代码可以在我的另一个网站上运行,但它今天不起作用。我收到三个警告:Warning:mysqli_stmt_bind_param()expectsparameter1tobemysqli_stmt,booleangivenin/homepages/14/d248783986/htdocs/subdomains/clients.bi

PHP 警告:mysqli_stmt::bind_param():变量数与准备语句中的参数数不匹配

不确定为什么我会收到此PHP警告消息。准备好的语句中似乎有四个参数,bind_param()中也有四个变量。谢谢你的帮助!if($stmt=$mysqli->prepare("SELECTurl,month,year,cover_imageFROMback_issuesORDERBYyearDESC,monthDESC")){$stmt->bind_param("ssis",$url,$month,$year,$cover_image);$stmt->execute();$stmt->bind_result($url,$month,$year,$cover_image);$stmt->

php - 用 Nginx 和 PHP 重写 fastcgi 仍然发送旧的 request_uri 到后端(php 和 symfony)

我正在尝试通过fastcgi将运行symfony框架的php网站迁移到nginx和php。使用http://wiki.nginx.org/中的Symfonyhowto一切正常但我遇到了自定义重写规则的问题。我的目标是将形式为/aaaa的url重写为/view/shorthand/aaaa。然后请求应该由php和symfony处理。旧的apache重写规则:RewriteRule^([0-9a-f]+)$index.php/view/shorthand/$1[L]我试过的Nginx规则:rewrite^/([0-9a-f]+)$/view/shorthand/$1break;rewrit

php - HTTP 错误 500.0 - 内部服务器错误 发生未知的 FastCGI 错误

我在带有Plesk10的WindowsServer2008上运行IIS7。我在plesk下有一个网站,还有一个不在plesk下且仅在IIS上的网站。plesk下的网站成功运行php文件但是其他网站报错:HTTPError500.0-InternalServerErrorAnunknownFastCGIerroroccuredModuleFastCgiModuleNotificationExecuteRequestHandlerHandlerPHP5-FastCGI-phpErrorCode0x8007010bRequestedURLhttp://*.com:80/test.phpPhy

php - 多次调用 $stmt->bind_param

我处于一种情况,我想构建一个代码,以这种格式获取$bindParam变量:$bindParams=[$type1=>$param1,$type2=>$param2,...]我想构建一些代码,将这些参数动态添加到准备好的语句中。这是我到目前为止构建的代码:$mysql=newmysqli("localhost","root","","db1");$stmt=$mysql->prepare($sql);foreach($bindParamsas$type=>$data){$stmt->bind_param($type,$data);}$stmt->execute();$result=$st

php - PHP 7.0 FastCGI 进程管理器启动失败

我对php7有问题当我运行这个命令时,我得到了错误sudosystemctlstatusphp7.0-fpm.service这个输出:●php7.0-fpm.service-ThePHP7.0FastCGIProcessManagerLoaded:loaded(/lib/systemd/system/php7.0-fpm.service;enabled;vendorpreset:enabled)Active:failed(Result:exit-code)sinceسهشنبه2016-06-2817:58:08IRDT;4min27sagoDocs:man:php-fpm7.0(8)

php - nginx/fastcgi 504 网关错误,增加 fastcgi_read_timeout 没有帮助

我需要较高的超时时间,以便我可以在我的源代码上使用调试器。它从nginx正确地传递给fastcgi,但总是在60秒后超时。我已经尽可能多地更改了超时参数,每次更改后都重新启动了nginx和fast-cgi,但没有任何效果。我看到大多数用户将此类问题指向HowdoIpreventaGatewayTimeoutwithFastCGIonNginx.但该解决方案对我不起作用。我增加的参数是:fastcgi_read_timeout(上面的线程说这解决了问题那个用户)client_header_timeoutclient_body_timeout发送超时 最佳答案

php - Nginx - 在 stderr : "PHP message: PHP Notice: Undefined variable 中发送的 FastCGI

我已经安装了Ngnix服务器并配置如下:server{listen80default_server;listen[::]:80default_serveripv6only=on;root/usr/share/nginx/html;indexindex.phpindex.htmlindex.htm;#Makesiteaccessiblefromhttp://localhost/server_namelocalhost;location/{#Firstattempttoserverequestasfile,then#asdirectory,thenfallbacktodisplayinga

fastcgi - php-fpm 打开的文件太多

我正在运行nginx作为前端和php-fpm作为后端来处理php文件。我在/var/log/php-fpm/error.log上收到“太多打开的文件”错误。我已经将硬和软ulimit增加到65535,但似乎无法解决问题。/var/log/php-fpm/error.log[17-Sep-201214:43:51]ERROR:failedtopreparethestderrpipe:Toomanyopenfiles(24)[17-Sep-201214:43:52]ERROR:failedtopreparethestderrpipe:Toomanyopenfiles(24)ulimit-n

php - 在 HHVM + Apache + fastCGI 上部署 Symfony2

我正在尝试通过fastCGI在HHVM(3.0)和Apache(2.4)上部署Symfony2(2.4)应用程序,按照此处的说明-https://github.com/facebook/hhvm/wiki/FastCGI虽然我可以通过这种方式正确执行单个php文件,但它似乎不适用于Symfony2路由系统。路由已正确解析(例如localhost/myapp/web/app_dev.php/my/route/to/something),但页面本身不会加载。相反,该页面仅输出“未找到”,并且HHVM记录以下内容:Nothingtodo.Eitherpassa.phpfiletorun,or