Can you solve the problem caused by PHP running errors that cannot be debugged? my environment is Eclipse + XAMPP. if $ _ GET (& quot;) appears in the Code ;), the code has no error message, but an error occurs during running. If $ _ GET [& quot;] is correct, debugging is normal, but debugging cannot be performed due to incorrect writing. According to my understanding, since it can run, at least one step can be taken. when this error is encountered, an error will be prompted. However, it can be seen whether the PHP runtime error can be solved and cannot be debugged.
Dear experts, my environment is Eclipse + XAMPP. if $ _ GET ("") appears in the Code, the Code will not prompt any errors, but the running will fail.
If you write $ _ GET [""] correctly, debugging is normal, but debugging cannot be performed due to incorrect writing.
According to my understanding, since it can run, at least one step can be taken. when this error is encountered, an error is prompted, but it does not look like this.
Is there any way that experts can debug this situation, or find this error before running? thank you.
------ Solution --------------------
Ecplise and most IDE editors have syntax error correction functions, allowing you to detect syntax errors during the editing stage.
$ _ GET ("") is not automatically detected. Because if
PHP code
$ _ GET = function ($ who) {echo "hello". $ who ;}$ _ GET ("");
------ Solution --------------------
Php is loose than js
Everything about js is managed by an object.
You can
P = alert;
P (123 );
A 123 pop-up window is displayed.
No.
P = 'alert ';
P (123 );
You can
$ P = 'phpinfo ';
$ P ();
Of course.
$ _ GET = 'phpinfo ';
$ _ GET ();
This $ _ GET string, not an array
If you use arrays as strings, errors may naturally occur.
The example is not necessarily appropriate. I think you can still understand it.