Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Nginx-严格的标准:在_Php_Variables_Pass By Reference - Fatal编程技术网

Php Nginx-严格的标准:在

Php Nginx-严格的标准:在,php,variables,pass-by-reference,Php,Variables,Pass By Reference,我收到这条消息,当主机在Nginx中运行时,如果我使用Apache2就可以了 严格的标准:只有变量才能通过引用传递 那代码怎么了?感谢Apache HTTPD和nginx可能有不同的PHP配置,具有不同的错误报告设置。 $stmt = $mysqli->prepare("INSERT INTO kategori VALUES (NULL, ?)"); $stmt->bind_param("s", strtolower(trim($_POST['kategori']))); if($s

我收到这条消息,当主机在Nginx中运行时,如果我使用Apache2就可以了

严格的标准:只有变量才能通过引用传递


那代码怎么了?感谢

Apache HTTPD和nginx可能有不同的PHP配置,具有不同的错误报告设置。
$stmt = $mysqli->prepare("INSERT INTO kategori VALUES (NULL, ?)");
$stmt->bind_param("s", strtolower(trim($_POST['kategori'])));
if($stmt->execute()) {
    showAlert("Success add new category.", "success");
}
if (strpos($stmt->error,'Duplicate entry') !== false) showAlert("That category is already exist.");