Jason - > Re: [PHP] Simple (Q) how to put globals off WITHOUT....
| From: | Ryan A | Date: | Sat, 03 May 2003 14:42:46 +0000 |
| Subject: | Jason - > Re: [PHP] Simple (Q) how to put globals off WITHOUT.... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146269@lists.php.net to get a copy of this message | ||
Hi,
I seem to be having a bit of a problem, can you give me the _exact_ text
that goes into the htaccess file please?
also will it protect the entire directory that the .htaccess file is in AND
the directories under that or will I have to put more .htaccess files there?
my directory structure is like this
--files (.htaccess goes here right?)
---inc
---admin
----admin2
Kindly reply.
Cheers,
-Ryan
----- Original Message -----
From: "Jason Wong" <php-general@gremlins.biz>
To: <php-general@lists.php.net>
Sent: Saturday, May 03, 2003 1:54 PM
Subject: Re: [PHP] Simple (Q) how to put globals off WITHOUT touching the
.ini
> On Saturday 03 May 2003 19:28, Ryan A wrote:
>
> > I have (hopefully) converted my script so it will work with register
> > globals off too, I will never know till i test it but my host has
register
> > globals on and they wont touch the php.ini file for me...
> >
> > Is there any "proper" way of putting register globals off without
touching
> > the php.ini file?
> >
> > I got this on one website:
> > (put a .htaccess file in the directory you are working with)
> > .htaccess:
> > php_flag register_globals Off
> >
> > on another website:
> > put this right on top of your pages:
> > ini_set('register_globals','off');
> >
> > Which is more effective?
>
> The former because the latter would not have the desired effect.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> Adopted kids are such a pain -- you have to teach them how to look like
you
> ...
> -- Gilda Radner
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>