Can this problem be solved due to exceptions during PHP running?-php Tutorial

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.