错误:解析错误:语法错误,意外T_STRING

时间:2014-01-27 15:04:11

标签: php

当我在本地主机上的000webhost.com上载网站时,我收到此错误此行正常,但上传后显示错误。

我面临的错误: -

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/a1942959/public_html/fypambulancesystem/Mobile/api/json.php on line 265

Free Web Hosting

PHP Error Message

Parse error: syntax error, unexpected T_STRING in /home/a1942959/public_html/fypambulancesystem/Mobile/api/json.php on line 265

Free Web Hosting

在这一行显示我的错误。

function updateStatusOfRequest($params)
    {
        global $api;

        $params = json_decode($params, true);

        $requestStatus = PageHelper::sanitizeInput($params['requestStatus'], FILTER_SANITIZE_STRING);
        $requestID = PageHelper::sanitizeInput($params['requestID'], FILTER_SANITIZE_NUMBER_INT);
        $deviceId = PageHelper::sanitizeInput($params['deviceId'], FILTER_SANITIZE_STRING);

        if($requestStatus == "Pending")
        {
            $apiKey = "##############";
            $regId = $deviceId;

            $pusher = new AndroidPusher\Pusher($apiKey); // 265 on This line i am getting error.
            $pusher->notify($regId, "hi");

            print_r($pusher->getOutputAsArray());

        }

        return $api->updateStatusOfRequest($requestStatus, $requestID, $deviceId);
    }

0 个答案:

没有答案