Header (Location: index. php? The code for the admin. php file under the root directory is:
Header ("Location: index. php? G = admin ");
Exit;
I am a newbie. I don't understand such a jump. where is this jump?
Reply to discussion
This article introduces how to resolve Warning: cannot modify header information-headers already sent by in php when headers cannot be redirected ......
The following message is often displayed: cannot modify header information-headers already sent
1.header () function
The header () function is a very simple way to make a page jump in PHP. The main function of the header () function is to output HTTP protocol headers (headers) to the browser.
The header () function is defined as follows:
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
When we go on page jumps, we usually use
In PHP with the header ("location:test.php") to jump to pay attention to the following points, to help solve some of the problems novice often encountered
1, location and ":" No space between, otherwise it
In php, if you want to download slice files, php files, and html files, we will open them directly if you click them on the website. If you want to download these files, you can use the phpheader function to perform operations, the following
The answer is: when the server uses the php feature (function) to include any file, the source of the file to be included is not strictly filtered, so that it can contain a malicious file, we can construct this malicious file to achieve the evil
From: http://zhanglulu33.blog.163.com/blog/static/112799542010112810497281/
If you got this message: "Warning: cannot modify header information-headers already sent ...."If you see this warning when executing the PHP program: "Warning: cannot modify
Let's take a look at this article and repost it from nginx.cn.
Nginx itself cannot process PHP. It is only a Web server. After receiving the request, if it is a PHP request, it is sent to the PHP interpreter for processing and the result is
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.