草庐IT

path-parameter

全部标签

php - 发出警告 : mysqli_real_escape_string() expects exactly 2 parameters, 1...我做错了什么?

这个问题在这里已经有了答案:mysqli_real_escape_string()expectsexactly2parameters,1given(5个答案)CanImixMySQLAPIsinPHP?(4个答案)关闭去年。我尝试使php登录,但出现此错误:警告:mysqli_real_escape_string()需要正好2个参数,1个给定,我做错了什么?注册.phpasdasdEtusivu•我使用000webhost,这是我第一次在线使用mysql数据库。

php - Laravel 错误 : Missing required parameters for route

我一直收到这个错误ErrorExceptioninUrlGenerationException.phpline17:每当加载任何页面并且我已登录时。我的导航是这样的@if(Auth::guest())LogInSignUp@else{{Auth::user()->nickname}}ProfileSettingsLogOut@endif我遇到的问题是{{route('user.profile')}}不工作??当我点击链接www.mydomain.com/User/SCRATK/profile时,它​​工作正常,但页面不会加载,因为这个错误??Missingrequiredparamet

php - Laravel 错误 : Missing required parameters for route

我一直收到这个错误ErrorExceptioninUrlGenerationException.phpline17:每当加载任何页面并且我已登录时。我的导航是这样的@if(Auth::guest())LogInSignUp@else{{Auth::user()->nickname}}ProfileSettingsLogOut@endif我遇到的问题是{{route('user.profile')}}不工作??当我点击链接www.mydomain.com/User/SCRATK/profile时,它​​工作正常,但页面不会加载,因为这个错误??Missingrequiredparamet

PHP-Laravel 依赖注入(inject) : pass parameters to dependency constructor

我正在构建一个Laravel项目,在其中一个Controller中,我在一个方法中注入(inject)了两个依赖项:publicfunctionpusherAuth(Request$request,ChannelAuth$channelAuth){...}我的问题非常简单:如何将参数传递给$channelAuth依赖项?目前我正在使用一些setter来传递所需的依赖项:publicfunctionpusherAuth(Request$request,ChannelAuth$channelAuth){$channelAuth->setChannel($request->input('ch

PHP-Laravel 依赖注入(inject) : pass parameters to dependency constructor

我正在构建一个Laravel项目,在其中一个Controller中,我在一个方法中注入(inject)了两个依赖项:publicfunctionpusherAuth(Request$request,ChannelAuth$channelAuth){...}我的问题非常简单:如何将参数传递给$channelAuth依赖项?目前我正在使用一些setter来传递所需的依赖项:publicfunctionpusherAuth(Request$request,ChannelAuth$channelAuth){$channelAuth->setChannel($request->input('ch

php - "(include_path=' 是什么意思。 :/usr/share/pear:/usr/share/php')"?

我在EC2上的文件结构类似于:但面临一些文件引用问题。index.php-db-config.php-cron-cron1.php我试过将文件引用为:`require_once(dirname(__FILE__).'/db/config.php');``require_once(($_SERVER['DOCUMENT_ROOT']).'/db/config.php');`但cron没有运行。它在邮件中给出错误`PHPWarning:require_once(/db/config.php):failedtoopenstream:Nosuchfileordirectoryin/var/ww

php - "(include_path=' 是什么意思。 :/usr/share/pear:/usr/share/php')"?

我在EC2上的文件结构类似于:但面临一些文件引用问题。index.php-db-config.php-cron-cron1.php我试过将文件引用为:`require_once(dirname(__FILE__).'/db/config.php');``require_once(($_SERVER['DOCUMENT_ROOT']).'/db/config.php');`但cron没有运行。它在邮件中给出错误`PHPWarning:require_once(/db/config.php):failedtoopenstream:Nosuchfileordirectoryin/var/ww

php - Windows CMD.exe "The system cannot find the path specified."

通过将Windows恢复到以前的状态解决消息(系统找不到指定的路径。)显示...1)当我打开新的CMD(Win+R=>cmd)时。它从介绍开始。(第3行)MicrosoftWindows[Version6.1.7601]Copyright(c)2009MicrosoftCorporation.Allrightsreserved.Thesystemcannotfindthepathspecified.C:\Users\ViliamKopecky>2)当我执行类似cmd/Cdir的命令时(或cmd/Cphp-v或其他)(第2行)C:\Users\ViliamKopecky>cmd/Cdir

php - Windows CMD.exe "The system cannot find the path specified."

通过将Windows恢复到以前的状态解决消息(系统找不到指定的路径。)显示...1)当我打开新的CMD(Win+R=>cmd)时。它从介绍开始。(第3行)MicrosoftWindows[Version6.1.7601]Copyright(c)2009MicrosoftCorporation.Allrightsreserved.Thesystemcannotfindthepathspecified.C:\Users\ViliamKopecky>2)当我执行类似cmd/Cdir的命令时(或cmd/Cphp-v或其他)(第2行)C:\Users\ViliamKopecky>cmd/Cdir

php - 无法解析的依赖解析 [Parameter #0 [ <required> $name ]]

警告这个问题是特定于Laravel4的。我之前一直在我的Controller中使用Facades。因此我知道代码正在运行。现在由于各种原因需要引入依赖注入(inject)。重构Controller后出现以下错误:Illuminate\Container\BindingResolutionExceptionUnresolvabledependencyresolving[Parameter#0[$name]].我不知道问题出在哪里。错误消息对我来说似乎很神秘,我不明白。(我没有看到我的__constructor参数有任何问题,因为我已经为HelpersInterface注册了绑定(bind