Enabling the safe_mode directive results in PHP being run under the aforementioned constraints.Enabling safe mode will disable quite a few functions and various features deemed to be potentially insecure and thus possibly damaging if they are misused within a local script.

Example :

safe_mode_gid = Off

Note : if server administrator can enable PHP's safe_mode_gid avoid server can't access files it has written error.