RE: [PHP] Stripslashes
| From: | Beauford | Date: | Mon, 15 Jan 2007 19:11:49 +0000 |
| Subject: | RE: [PHP] Stripslashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247108@lists.php.net to get a copy of this message | ||
I'm familiar with the .htaccess file and I am told by the hosting company
that apache is set up to use it, I've just never used it much - especially
for PHP. If this works I'd even like to set an includes file for PHP. Here
is the file.
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.site.com
AuthUserFile /home/user/public_html/dir/file.pwd
AuthGroupFile /home/user/public_html/dir/file.grp
php_value magic_quotes_gpc 0
-----
Thanks
> -----Original Message-----
> From: Larry Garfield [mailto:larry@garfieldtech.com]
> Sent: January 15, 2007 12:02 AM
> To: Beauford; PHP-General
> Subject: Re: [PHP] Stripslashes
>
> Copying this back on list where it belongs...
>
> If the apache process on the server is configured to support
> .htaccess files, then there shouldn't be anything special you
> need to do. Do you have any other htaccess directives in use
> that could be affecting it? Remember that it's not
> "htaccess", it's a ".htaccess" file. Mind the period.
>
>
> On Sunday 14 January 2007 9:56 pm, Beauford wrote:
> > Hi Larry,
> >
> > I'm sending this off list. I put this in the .htaccess file on the
> > hosting server, but still have the same problems. Is there
> a special
> > way this needs to be done?
> >
> > Thanks
> >
> > > Thanks
> > >
> > > > -----Original Message-----
> > > > From: Larry Garfield [mailto:larry@garfieldtech.com]
> > > > Sent: January 14, 2007 4:39 PM
> > > > To: php-general@lists.php.net
> > > > Subject: Re: [PHP] Stripslashes
> > > >
> > > > On a real web host, they'll let you have a .htaccess file where
> > > > you can disable them like so:
> > > >
> > > > php_value magic_quotes_gpc 0
> > > >
> > > > (I keep saying "real web host" because I've just recently
> > >
> > > had to deal
> > >
> > > > with a few web hosts that a client insisted on that
> didn't have a
> > > > standard configuration and didn't support .htaccess files.
> > >
> > > I lost 6
> > >
> > > > hours of my life right before Christmas trying to work
> around that
> > > > fact, and I can't get them back. If you find yourself
> in the same
> > > > situation, vote with your feet and let such hosts die a
> > >
> > > horrible and
> > >
> > > > bankrupt death.)
> > > >
> > > > On Sunday 14 January 2007 10:46 am, Beauford wrote:
> > > > > I just turned off get_magic_quotes in my PHP.ini, but not
> > > >
> > > > sure if the
> > > >
> > > > > hosting company has it on or not once I upload the site.
>
>
> --
> Larry Garfield AIM: LOLG42
> larry@garfieldtech.com ICQ: 6817012
>
> "If nature has made any one thing less susceptible than all
> others of exclusive property, it is the action of the
> thinking power called an idea, which an individual may
> exclusively possess as long as he keeps it to himself; but
> the moment it is divulged, it forces itself into the
> possession of every one, and the receiver cannot dispossess
> himself of it." -- Thomas Jefferson
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>
>