First to the PHP plate report, ask a few questions about the safety of beginner-level, I implore you god NIU Enlighten
Source: Internet
Author: User
First to the PHP plate to report, ask a few questions about the safety of the rookie level, I implore you god niu Enlighten!
First to the PHP plate to report, ask a few questions about the safety of the rookie level, I implore you god niu Enlighten!
Because some functions are often called, they are written separately and concentrated in a separate PHP file. The other calls to the page will be required called. The problem is that
1. Will this be called by other websites?
2. How do I disable direct access to PHP?
3. How should file permissions be set??
Does someone else access my PHP operation via PHP is the "World" "Run" permission?
------Solution--------------------
1. No. Unless your php.ini allow_url_fopen is set to open
2. How do I disable access to PHP? You can place PHP files in a directory outside the web directory
3. Sorry not to understand, in addition to distinguish Win/linux system
------Solution--------------------
1. If not on the same server, others cannot require to your function, remote include can only get the content you output, if all is a function, that is blank. And you can go through the. htaccess or put it in a web directory to prevent other people from accessing
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.