草庐IT

accept-parameters

全部标签

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 - 打开();本地文件上的 "Remote host file access not accepted"?

我正在使用Tcpdf模块和PHP从订购系统创建动态PDF发票。然后脚本应将发票保存到名为“invoices”的文件夹中。该文件夹存在,并且对“所有人”(Windows)具有完全权限。我使用的代码是这样的:$pdf->Output('invoices/DeliveryNote.pdf','F');这使用fopen来保存文件。但是我得到的错误是:Warning:fopen():remotehostfileaccessnotsupported,file://invoices/DeliveryNote.pdf这是本地文件,不是远程文件。我尝试像这样添加/前缀:$pdf->Output('/in

php - 打开();本地文件上的 "Remote host file access not accepted"?

我正在使用Tcpdf模块和PHP从订购系统创建动态PDF发票。然后脚本应将发票保存到名为“invoices”的文件夹中。该文件夹存在,并且对“所有人”(Windows)具有完全权限。我使用的代码是这样的:$pdf->Output('invoices/DeliveryNote.pdf','F');这使用fopen来保存文件。但是我得到的错误是:Warning:fopen():remotehostfileaccessnotsupported,file://invoices/DeliveryNote.pdf这是本地文件,不是远程文件。我尝试像这样添加/前缀:$pdf->Output('/in

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

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

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

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

php - 如何在 Laravel 5 包的测试中模拟 Accept header ?

我目前正在构建一个Laravel包,它通过Macros在Illuminate\Http\Request中注入(inject)一个新方法.我正在注入(inject)的方法已经完成,预计可以很好地工作,但我也想在发布之前对其进行测试。我的测试要求我更改请求的Acceptheader,以便我查看测试是否通过。所以我做了以下模拟请求://package/tests/TestCase.phpnamespaceVendor\Package;useIlluminate\Http\Request;useOrchestra\Testbench\TestCaseasOrchestra;abstractcl