2015-12-18 94 views
0

我在PHP中添加以下代碼:面500錯誤在PHP內部服務器錯誤

echo '{"YourMessageis":"' alishcode($input,$message_key);'"}'

但我面對500服務器錯誤。發生了什麼
以及如何從PHP響應 16777 w13 r s3 w2 r s3 w36
除去16777,只得到w13 r s3 w2 r s3 w36

+0

'回聲 '{ 「YourMessageis」: 「'。alishcode($輸入,$ message_key) '」}';'CONCAT你的字符串正確 – roullie

+0

嘗試使用'json_encode'這種方式避免輸入語法錯誤。像:'echo json_encode(array( \t'YourMessageis'=> alishcode($ input,$ message_key) ));'然後突出顯示PHP語法,並在您輸入時檢測到錯誤。 – Matt

+0

例如我可以如何刪除16777 http://api.uplaytube.com/key訪問此地址 –

回答

0

你忘.格式化這樣的:

echo '{"YourMessageis":"'. alishcode($input,$message_key).'"}';

+0

我應該如何從這段代碼中刪除'16777' => 16777 w13 r s3 w2 r s3 w36' –