Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method that php can't get post?

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

The main content of this article is to explain "what is the method that php can't get post". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what is the way that php can't get post?"

1. Create the project under the working directory of the Apache server.

2. Just map the apache server directory to the local directory.

The solution of not getting post data when php form is submitted

Looking at the address of your browser running php, you will find that the service port number used to open the browser in PhpStorm is 63342 (URL is in the form of localhost:63342/)

So the reason for the problem is that PhpStorm uses its own internal server by default, but does not use the apache server in xampp. PhpStorm, a built-in server, uses port 63342, and there is a problem within the server, resulting in an exception in the POST method; but if you put the project under the working directory of the Apache server, enter localhost in the address bar, and use the Apache server at this time, the default port number is 80th Apache server can run the program normally.

Since there is a problem with the PhpStorm internal server, the solution is to find a way not to use the internal server. There are two ways:

1. Create the project under the working directory of the Apache server, and enter the localhost address directly in the browser address bar each time you run

two。 If you still want to open the browser debugger from PhpStorm, you can do so by changing the configuration.

At this point, I believe you have a deeper understanding of "php can't get post", so you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report