what status code is returned for php error?

If you have a typo in a php file that breaks the syntax, the php engine cannot execute the php code and exits. You will see a blank page. The lack of error message makes it difficult to debug the problem because usually the whole php script does not run at all, rather than runs to the erroneous line, so you cannot put echo statement before and after the suspicious line to catch this kind of error. But you can know it is a syntax error through the http status code that returns. The status code is “http/1.1 500 Internal Server Error”.

The Qt QNetworkReply::NetworkError code will be set to 299, which is “an unknown error related to the remote content was detected”. This error description is somewhat accurate because the php syntax error is indeed related to the remote content but specific error information is unknown.

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:

Comments are closed, but trackbacks and pingbacks are open.