UWAGA: Strona zawiera materiały archiwalne. Większość artykułów dotyczy Joomla! 1.0
Start arrow Częste pytania arrow Bezpieczeństwoarrow Jak używać PHP z safe_mode?
Jak używać PHP z safe_mode?
Drukuj 
Jak używać PHP z safe_mode? [Why shouldn't I use PHP safe_mode? - tekst do przetłumaczenia]

Przegląd

Enabling safe_mode is not needed if other reasonable security precautions are followed. Using safe_mode for web site security is a poor compromise in a bad situation. It may make sense in some situations, but there is almost always a better way. Because safe_mode in some sense only gives the illusion of safety, it will be removed from PHP starting with version 6.0.

The Joomla! core works fine with or without PHP safe_mode. The one execption to this rule is the installation script. This is because safe_mode, by design, turns off the PHP functions that enable easy uploading via a Web browser. If you do use safe_mode, and need to perform installs via the Web browser, temporarily turn safe_mode OFF, and turn it back ON when finished.

Some third-party extensions may require the specific PHP functions that are blocked by safe_mode. Such extensions should be carefully evaluated to be sure you understand exactly why they require such powerful and potentially dangerous functions.

From the official PHP site

The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level, but since the alternatives at the web server and OS levels aren't very realistic, many people, especially ISP's, use safe mode for now.

Więcej informacji

  1. Official PHP Manual: PHP Security and Safe Mode Configuration Directives
  2. Official PHP Manual: PHP Functions restricted/disabled by safe mode

Zmieniony 17.06.2007.
Wg 42,86% osób z 7 przydatne.  Twoja opinia?   przydatne przydatne  nieprzydatne nieprzydatne
« poprzedni artykuł   następny artykuł »

Opracowany przez EasyFAQ © 2006 Joomla-addons.org