Hello all,
My shared server provider has register_global s 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_global s 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
My shared server provider has register_global s 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_global s 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
Comment