problem z ustawieniami strony - htaccess

w dziale Opera
robert23 napisał(a):

Witam zwracam się z prośbą o pomoc w ustawieniu htaccess brak linijki register_globals jak wchodze na strone jest taki komunikat: Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. na serwerze mam plik htaccess oto co sie w nim znajduje

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1

#</IfModule>


Proszę powiedzieć gdzie mam wpisać polecenie i jak ono wygląda by strona działała dziękuje za pomoc

Barthezdeleted napisał(a):

Ja się zupełnie na stawianiu serwerów nie znam wink ale wygląda ,ze masz tą linijkę za-komentowaną (#) podobno ponieważ ustawienia te mogą generować błędy na niektórych serwerach:

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1


Może spróbuj zdjąć komentarze, tak aby ten fragment wyglądał następująco:
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
<IfModule mod_php4.c>
 php_value session.use_trans_sid 0
 php_value register_globals 1

daroc napisał(a):

Originally posted by Barthez:

ustawienia te mogą generować błędy na niektórych serwerach


Na pewno chodzi o błędy? A nie o bezpieczeństwo? Chodzi chyba o to, żeby dane od użytkownika (parametry w url, metoda post) pobierać tylko w świadomy sposób, czyli poprzez tablicę $_GET i $_POST (wtedy tak pobrane dane odpowiednio się "obrabia", np. używając addslashes).