Cainiao problem: post running on built-in servers in phpstorm is invalid.

Source: Internet
Author: User
Cainiao problem: the built-in server in phpstorm does not run post. objective: to add two numbers and send them to the server using post, but the server does not receive the submitted content.
Exactly post.html




Add





2. post_server.php

Print_r ($ _ POST );
If ($ _ POST ['A'] & $ _ POST ['B']) {
Echo $ _ POST ['A'] + $ _ POST ['B'];
} Else {
Echo 'parameter cannot be blank! ';
};

III. running result:
Array ()
Notice: Undefined index: a in E: \ xampp \ htdocs \ tools \ post_server.php on line 11
The parameter cannot be blank!

IV. other instructions
Use the built-in server http: // localhost: 63342/htdocs/tools/post.html
However, there is no problem when running apache. http: // localhos/tools/post.html
Phpstorm version 10.0.1
Php interpreter settings: E: \ xampp \ php \ php.exe
Need to configure the built-in server?


Reply to discussion (solution)



Whoever asks you to use phpstorm 10 will return 9.

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.