php 托管时不返回响应

php not returning response when hosted

我的 android 的服务器端 PHP 代码在我本地电脑的 xampp 服务器上工作正常,但是当我上传它时它不会 return 响应到我的控制面板

<?php
require '../databaseConnector/databaseConnector.php';

$codes=$_POST["codes"];

$statement=mysqli_prepare($con, "SELECT * FROM product_codes WHERE $codes = ?");
mysqli_stmt_bind_param($statement, "s", $codes);
mysqli_stmt_execute($statement);

mysqli_stmt_store_result($statement);
mysqli_stmt_bind_result($statement, $id, $codes);

$response=array();
$response["success"]=false;

while(mysqli_stmt_fetch($statement)){
    $response["success"]=true;
    $response["codes"]=$codes;
}
echo json_encode($response);  ?>

cPanel 上显示错误

log[Wed Jul 11 06:45:40.608669 2018] [:error] [pid 7330:tid 140534072993536] [client 41.204.187.12:10436] SoftException in Application.cpp:267: File "/home/barnsley/smartscanner/checkvalidity/validity.php" is writeable by group

将您的文件权限更改为 644 以便可以执行该文件

Proper permissions for web server's directories and files