In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "php how to use header jump invalid solution", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and learn "php how to use header jump invalid solution" bar!
Php takes advantage of the invalid solution of header jump: 1, find and open the php.ini configuration file; 2, change output_buffering = Off to output_buffering = 4096; restart the server.
This article operating environment: windows10 system, php 7, thinkpad T480 computer.
Solution:
1. Modify php.ini
2. Find output_buffering=Off and change it to output_buffering=4096
3. Restart the server.
Using header ("location:test.php") to jump in PHP should pay attention to the following points:
1. There can be no space between location and ":", otherwise there will be an error. / / phpfensi.com
2. There can be no output before using header, including no spaces after the tag "? >" in the include page.
3. The PHP code after header will also be executed.
There cannot be any content output before PHP's header jump, because the PHP sends HTTP headers to the browser when it starts execution, and then changes are no longer allowed.
But if you have to process the header information after the output, you can use ob_start () ob_end_flush () to cache the content to be sent, and wait until header continues to send the content.
Thank you for your reading, the above is the content of "php how to use header jump invalid solutions". After the study of this article, I believe you have a deeper understanding of how php uses header jump invalid solutions, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.