RE: Stripslashes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx] 
> Sent: January 15, 2007 12:02 AM
> To: Beauford; PHP-General
> Subject: Re:  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@xxxxxxxxxxxxxxxx]
> > > > Sent: January 14, 2007 4:39 PM
> > > > To: php-general@xxxxxxxxxxxxx
> > > > Subject: Re:  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@xxxxxxxxxxxxxxxx		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
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux