草庐IT

data-parameter

全部标签

php - 交响乐 : sfDoctrineRoute pass additional Parameter

我正在使用symfony1.4,我的/-Route有以下路线:homepage:url:/class:sfDoctrineRouteoptions:{model:ContentPage,type:object}param:{module:page,action:show}我的show-Action看起来像这样:classpageActionsextendssfActions{publicfunctionexecuteShow(sfWebRequest$request){$this->content_page=$this->getRoute()->getObject();$this->f

php - 亚马逊 MWS : How to specify the language of _GET_MERCHANT_LISTINGS_DATA_

最近我尝试使用ReportType:_GET_MERCHANT_LISTINGS_DATA_从多个市场获取所有亚马逊列表。对于MarketplaceIdsA1PA6795UKMFR9(德语)A1RKKUPIHCS9HS(ES)A1F83G8C2ARO7P(英国)响应列如下:item-nameitem-descriptionlisting-idseller-skupricequantityopen-dateimage-urlitem-is-marketplaceproduct-id-typezshop-shipping-feeitem-noteitem-conditionzshop-ca

php - 交响乐 2 : Keep form data across redirect

在Symfony2应用程序中,我试图实现一个带有搜索框和一些附加过滤器(选择小部件)的表单。搜索框在数据库中查找记录,然后显示有关该记录的详细信息。过滤器用于显示或隐藏某些类型的详细信息。如果没有找到记录或找到一条记录,这会起作用,因为我可以留在同一个Controller和操作中。但是,如果找到多个记录,我会呈现一个显示选择对话框的不同模板。列表中的每条记录都是返回原始页面的链接,但以记录ID作为参数。当我单击该链接时,我丢失了表单数据。在此处通过重定向保留表单数据的最佳方法是什么(或有条件地显示没有重定向的选择对话框)? 最佳答案

php - 警告 : fread(): Length parameter must be greater than 0

我想用我自己的代码创建一个有许可证的系统,但是给我一个错误代码是这样的,在lic.txt中也是一样的1234567,有什么问题吗?这是错误,如果我把@放在freaddosent前面显示错误但不打开文件Warning:fread():Lengthparametermustbegreaterthan0in/home/u422978792/public_html/platforma/license/index.phponline7Invalidlicensekey 最佳答案 在使用fread之前,您需要检查文件大小if(filesize(

php - Composer(Laravel5) 无法解码响应 : zlib_decode(): data error

我正在尝试使用composer安装laravel5.1依赖项。我已经安装了最新版本的Composer:Composerversion1.0-dev(a54f84f05f915c6d42bed94de0cdcb4406a4707b)2015-10-1313:09:04但是当我在项目目录上运行composerinstall时,它会给我以下消息并卡在那里:LoadingcomposerrepositorieswithpackageinformationInstallingdependencies(includingrequire-dev)Failedtodecoderesponse:zlib

php - 拉维尔 : Redirect with data

这个问题在这里已经有了答案:Laravel:Sessiondatatoview(3个答案)关闭6年前。我正尝试在with()上发送数据,但在View中登录页面刷新但未显示任何内容。我几乎尝试了所有的方法,我读了很多几乎所有方法都尝试过的问题。我的Controller,if条件正常。publicfunctionauthenticate(Request$request){$validator=Validator::make(Input::get(),['password'=>'required','username'=>'required']);if($validator->fails()

php - 错误 "(get) unknown parameter: ' personFields'"遵循 Google People API 文档中的示例时

我正在尝试使用GooglePeopleAPI添加和更新我的Google联系人。我已经使用Google文档(https://developers.google.com/people/v1/getting-started)中给出的示例代码几乎逐字设置了API。我收到以下代码行的错误,它再次逐字来自文档:$profile=$people_service->people->get('people/me',array('personFields'=>'names,emailAddresses'));错误如下:Fatalerror:Uncaughtexception'Google_Exceptio

php - 在PHP的curl中指定multipart/form-data各部分的Content-Type

如何指定多部分/表单数据请求的特定部分的内容类型?图像的内容类型作为application/octet-stream发送,但服务器期望它是image/jpeg。这会导致服务器拒绝我的请求。$data["file"]="@/image.jpg";$data["title"]="Thetitle";$data["description"]="Thedescription";//makethePOSTrequest$curl=curl_init();curl_setopt($curl,CURLOPT_URL,$url);curl_setopt($curl,CURLOPT_VERBOSE,1)

php - 为什么我在简单的 DB2 select 语句中得到 "Data conversion or data mapping error. SQLCODE=-802"?

我正在使用PHP在IBMi(AS400)上访问DB2信息。使用这段代码:$query="SELECT*FROMQS36F.MYTABLEWHEREMYFIELD=120006";$result=db2_prepare($conn,$query);db2_execute($result);$i=0;while($row=db2_fetch_assoc($result)ordie(db2_stmt_errormsg())){$i++;print"Row".$i."successful";}我得到:SELECT*FROMQS36F.MYTABLEWHEREMYFIELD=120006Row1

php - Symfony2 "Parameter ""for route ""must match "[^/]++"(""given) to generate a corresponding URL."

我有这个路线文件:indexRechercheZones:path:/gestionzonestechniquesdefaults:{_controller:MySpaceGestionEquipementsTechniquesBundle:GestionZonesTechniques:indexZonesTechnique}requirements:methods: GETmodifierZones:path:/gestionzonestechniques/modifier/{nom}defaults:{_controller:MySpaceGestionEquipementsTec