[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] phpMyAdmin
- Subject: Re: [cobalt-users] phpMyAdmin
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Tue May 1 03:04:04 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"Carrie Bartkowiak" <ravencarrie@xxxxxxxx> wrote:
> > > magic_quotes_gpc = On
> >
> > Thanks got rid of the waring by editing the php.ini just like you
> said.
>
> Todd if you've written any PHP scripts that accept input from a form
> and display it somehow (either on a webpage or via email), then you'll
> need to go back and make little changes to those scripts since you've
> just changed the way they work. Adding things like addslashes and
> stripslashes will fix you right up - when you change the 'magic quotes
> gpc' variable you're going to start having everything popping up with
> backslashes like so:
> Here\'s the file, it\'s not done yet but it\'s almost there
>
> (Unless you've already hardcoded in the addslashes/stripslashes... in
> which case, ignore this message.)
Or he can add the following to an .htaccess file within the directory
containing phpmyadmin:
php_value magic_quotes_gpc On
This was the second of the two alternatives I offerred. I failed to explain
that the first alternative was global in nature b/c I assumed some awareness
of php.ini's role and what .htaccess files are used for. The .htaccess file
will only affect files in the directory containing the .htaccess file and
files within its subdirectories. In this case that might be the preferable
alternative.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/