Header ("Location: index. php? G = admin ")

Source: Internet
Author: User
Header (Location: index. php? The code for the admin. php file under the root directory is:
Header ("Location: index. php? G = admin ");
I am a newbie. I don't understand such a jump. where is this jump?

Reply to discussion (solution)

Index. php

Index. php

The index. php code is as follows:
G = admin is the passed parameter, but this parameter is not used in index. php. if you do not know how to jump to the background

Not require ("./thinkphp/setup. php ");
How do you know that thinkphp/setup. php does not process the g = admin parameter?

Thinkphp is another harmful framework.

Thinkphp is another harmful framework.

Yes, but someone else needs to use this. it seems so dizzy to me!

To learn why the logic jumps to the background, you can only trace the code step by step. Now that the jump result is displayed, the parameter g = admin must have been processed. It may involve several files. be patient ..

The framework should have a unified portal, and all requests should be placed on index. php, which is very convenient for management.
However, for the convenience of users, place admin. php to the real background entrance.

To be honest, I don't like the thinkPHP framework, but I already understand this problem. close 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.