草庐IT

Forth_Parameter

全部标签

PHP 错误警告 : Parameter 1 expected to be a reference

我“熟悉”PHP,我friend的网站因错误而崩溃:Warning:Parameter1toSome_function_name()expectedtobeareference,valuegivenin/.../public_html/includes/tng/tNG.class.phponline219第219行:$ret=call_user_func_array($callBackFunction,$tempParam);我不确定他的服务器上发生了什么,但是托管公司团队说了一些关于Joomla和PHP冲突的事情。我该如何解决? 最佳答案

php - 如何从 SELECT 查询中获取行数?给定的对象错误 : mysqli_affected_rows() expects parameter 1 to be mysqli,

我正在为表单进行服务器端验证。使用AJAX,表单将“用户名”输入字段中的值发送到我的PHP页面,然后检查该用户名是否已存在于数据库中。这是我的PHP代码:$result=mysqli_query($dblink,"SELECT*FROMusersWHERE`username`='$regname'")ordie(mysqli_error($dblink));echomysqli_affected_rows($result);*(目前我正在为mysqli_affected_rows做一个简单的回显,只是为了看看我的MySQL查询是否按预期工作)*我得到的错误是:Warning:mysql

php - C 中给出的警告 : fgetcsv() expects parameter 1 to be resource, bool 值:

我正在尝试使用fgetcsv()获取CSV,但出现如下错误:Warning:fgetcsv()expectsparameter1toberesource,booleangiveninC:..如果我var_dump($handle)确保输出是:Bool(False) 最佳答案 在尝试使用结果之前需要测试fopen是否成功:$handle=fopen($_FILES['filename']['tmp_name'],"r");if($handle){//Use$handle}else{die("Unabletoopenfile");}

php - 使用 cURL 发布数据时出现 "Positional Parameter"错误

如果我在没有--data"..."的情况下发出命令,它会工作得很好。我试过谷歌,但找不到这个问题的任何答案。按照位于here的指示进行操作当我尝试使用cURL发布数据时出现以下错误:PSC:\Users\David>curl--data"SMethod=0""http://localhost/terra/modules/scripts/Query.php"Invoke-WebRequest:Apositionalparametercannotbefoundthatacceptsargument'SMethod=0'.Atline:1char:1+curl--data"SMethod=0

php - openssl_pkey_export 和 "cannot get key from parameter 1"

我需要在我的php项目中使用openssl,所以我使用openssl创建了一个测试php页面。但是,我不断收到这些错误,我不确定为什么。openssl已启用。Warning:openssl_pkey_export()[function.openssl-pkey-export]:cannotgetkeyfromparameter1inC:\wamp\www\opensslsample\index.phponline18Warning:openssl_pkey_get_details()expectsparameter1toberesource,booleangiveninC:\wamp\

php - 给出警告 : number_format() expects parameter 1 to be double, 字符串

关闭。这个问题需要debuggingdetails.它目前不接受答案。编辑问题以包含desiredbehavior,aspecificproblemorerror,andtheshortestcodenecessarytoreproducetheproblem.这将有助于其他人回答问题。关闭7年前。Improvethisquestion我的页面slider出现此错误:Warning:number_format()expectsparameter1tobedouble,stringgivenin/home/globalar/public_html/wp-content/themes/au

php - 奇怪的 PHP 错误 : function not recognizing its own parameter

我有以下功能:publicfunctionupdateCustomerInternetBanking($value,$column_to_go_by){$sql="UPDATEcustomercJOINaccount_importaiONc.account_import_id=ai.idJOINgeneric_importgiONai.generic_import_id=gi.idJOINimport_bundleibONgi.import_bundle_id=ib.idSEThas_internet_banking=1WHEREc.".$column_to_go_by."=".$th

php - 初学者 : Limit URL parameter by using regular expression

我需要一些关于正则表达式的帮助来限制用户为输入传递糟糕的参数时的选择。例如路径是这样的:/project/create/:category(:category是参数的占位符,因此我可以在我的Controller中访问它)基本上我想要做的是将URL与该类别的2个选项(报价|请求)之一相匹配。这使得用户尝试执行404重定向的任何其他路径都能正常工作。只允许这些选择的正则表达式需要是什么?(提供|请求)'/\/component\/create\/(offer|request)/'-会成功吗?提前致谢 最佳答案 从您表达问题的方式来看,您

PHP 错误 : Warning: ociparse() parameter 1 to be resource

由于oracle中没有现成的函数来验证如此创建的查询。所以我尝试了下面的代码来检查QUERY是否有效。if(isset($_POST['btn_Submit_Query'])){$check_query=$_POST['txtQuery'];echo$check_query;$valid=false;$stmt=oci_parse($DB,$check_query);echo"Statement".$stmt;//oci_define_by_name($stmt,'NUMBER_OF_ROWS',$number_of_rows);oci_execute($stmt,OCI_DEFAUL

php - Facebook 错误 "Missing redirect_uri parameter."

Kohana_Exception[0]:Errorfetchingremotehttps://graph.facebook.com/oauth/access_token?client_id=&client_secret=&code=&redirect_uri=http%3A%2F%2F%2Flogin%3Fmethod%3Dfboauth%26redirect_uri%3Dhttp%253A%252F%252F%252F[status400]{"error":{"type":"OAuthException","message":"Missingredirect_uriparameter