Use PHP to add a static webpage link to the page (I don't know if this is correct)

Source: Internet
Author: User
Using PHP to add a static webpage link to the page (I don't know if this is correct). the design idea is as follows: on a download page, click download, and request in the background to determine if you have the permission, if you do not have the permission to access a set static webpage, how can you solve this problem ??? The first time I asked this question, I just came into contact with these things. I hope to explain them in detail. Use PHP to add a static webpage link to the page (I don't know if this is correct)
The design concept is as follows:
On a download page, click download to determine the request in the background.
If you have the permission, you can access it. if you do not have the permission, you can access a set static webpage.
How can I solve this problem ??? The first time I asked this question, I just came into contact with these things. I hope to explain them in detail.

Share: More


------ Solution --------------------
Download
------ Solution --------------------
 If ($ quanxian = 'admin '){
Header ("Location: down. php ");
Exit ();
} Else {
Header ("Location: index. php ");
Exit ();
}
?>

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.