What are the scope of the ini_set, putenv, and other functions? the overall situation is limited to this website.
Source: Internet
Author: User
What is the scope of the ini_set, putenv, and other functions? is it global or limited to this website? The official website shows that the changes made to these two functions are valid during script execution. However, this modification is effective for the website or globally. If it is globally valid, can these functions be used to modify the default global PHP security settings, resulting in security problems. Does anyone know the scope of its function, or is it possible to use functions such as ini_set and putenv? is it global or only limited to this website?
The official website shows that the changes made to these two functions are valid during script execution.
However, this modification is effective for the website or globally. If it is globally valid, can these functions be used to modify the default global PHP security settings, resulting in security problems.
Does anyone know the scope of its function, or how it can be tested?
Is it necessary to disable them in disable_functions? are there many normal website programs that use them?
------ Solution --------------------
Ini_set when the current script runs, the script stops running
Putenv will survive when the current session request ends.
------ Solution --------------------
It is only valid for a single run, just like the constant you set
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.