PHP's security model was created to try to resolve the shared server (shared-server) security issue.
On the structure, it is unreasonable to try to solve this problem on the PHP layer, but it is very unrealistic to modify the Web server layer and the operating system layer. So many people, especially ISPs, currently use Safe mode.
But....
Warning
This feature has been deprecated since PHP 5.3.0 and will be removed from PHP 5.4.0.
Probably understand, after PHP started safe mode, a lot of functions can not be used, such as all filesystem and stream functions. Can not be used, which in our project, will have a great impact, such as the file read and write,
In our work and learning, we need to tailor our servers to our needs, so the security model can be ignored, and our focus is on how to make PHP code more secure.
PHP Security Mode Learn