Reply to Re: turn off register_globals on a shared server

Your name:

Reply:


Posted by Michael Vilain on 06/17/69 11:22

In article <1122423895.001684.209750@z14g2000cwz.googlegroups.com>,
aeldaly@gmail.com wrote:

> Hello all,
>
> My shared server provider has register_globals on. I checked by running
> php_info(); from within a file. I would like to turn this off, but
> asking them to turn it off just for me will not work.
>
> I tried adding the following lines to the .htaccess file:
> <IfModule mod_php4.c>
> php_flag register_globals off
> </IfModule>
> but that did not work. I thought that maybe the file is called
> something else, and I could not find any file containing mod_php
> anywhere on the server. Also, I can see that the addmodule line for
> mod_php4.c is commented out in the httpd.conf file for the shared
> server.
>
> I do not know how the server can serve php if that line is commented
> out?
>
> Bottom line is: is the .htaccess approach the correct one? and does
> anyone know how I can find out if I am using the correct filename?
>
> phpinfo() says that I have PHP Version 4.3.11
>
> I will leave phpinfo() running on the main page so that if someone
> needs more information, they can find it at linux-place.com
>
> Thanks,
> Ahmed El-Daly
> linux-place.com

put the following in the .htaccess file in the root of your main page:

php_flag register_globals off
php_flag safe_mode on
Options -Indexes

--
DeeDee, don't press that button! DeeDee! NO! Dee...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация