php-general Digest 2 Oct 2011 08:52:00 - Issue 7501
Topics (messages 315097 through 315110):
Re: php.ini setting
315097 by: Stephen
315098 by: Jim Giner
315099 by: Ashley Sheridan
315101 by: Mike Mackintosh
315103 by: Jim Giner
315108 by: Jim Giner
315110 by: Ashley Sheridan
Variable question
315100 by: Ron Piggott
315102 by: Mike Mackintosh
315104 by: David Harkness
315105 by: Robert Cummings
315106 by: Tim Streater
315109 by: Geoff Shang
Re: Getting meta data (of any type) for an XML file being from it's URL.
315107 by: Tommy Pham
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
--
---BeginMessage---
On 11-10-01 11:57 AM, Jim Giner wrote:
I'm trying to set magic quotes Off as my reading tells me that it's not good
to have it defaulted to On.
http://php.net/manual/en/security.magicquotes.disabling.php
Stephen
---End Message---
---BeginMessage---
Stephen stephe...@rogers.com wrote in message
news:4e874606.2030...@rogers.com...
http://php.net/manual/en/security.magicquotes.disabling.php
Stephen
That tells me nothing new.
---End Message---
---BeginMessage---
On Sat, 2011-10-01 at 12:55 -0400, Stephen wrote:
On 11-10-01 11:57 AM, Jim Giner wrote:
I'm trying to set magic quotes Off as my reading tells me that it's not good
to have it defaulted to On.
http://php.net/manual/en/security.magicquotes.disabling.php
Stephen
Stephen, that page specifies the exact same line for the .htaccess that
he said he used. I'm not sure why it would cause an internal server
error, but I've seen some Apache configurations completely flake over
lines in the .htaccess that were fine elsewhere.
The only thing I can find online where this line will cause a server
error is where the server is set up to allow custom php.ini files which
override the defaults. To test this, try adding a php.ini file into the
directory your script is (this is completely untested, I just saw it on
a forum (http://www.bluehostforum.com/archive/index.php/t-15975.html ))
and enter the regular php.ini line to turn it off.
If that fails, I'd try and contact your hosting provider and see what
they say, as they probably have more information specific to this
problem, as it's most likely a setting of theirs that is causing it.
--
Thanks,
Ash
http://www.ashleysheridan.co.uk
---End Message---
---BeginMessage---
On Oct 1, 2011, at 2:04 PM, Ashley Sheridan wrote:
On Sat, 2011-10-01 at 12:55 -0400, Stephen wrote:
On 11-10-01 11:57 AM, Jim Giner wrote:
I'm trying to set magic quotes Off as my reading tells me that it's not good
to have it defaulted to On.
http://php.net/manual/en/security.magicquotes.disabling.php
Stephen
Stephen, that page specifies the exact same line for the .htaccess that
he said he used. I'm not sure why it would cause an internal server
error, but I've seen some Apache configurations completely flake over
lines in the .htaccess that were fine elsewhere.
The only thing I can find online where this line will cause a server
error is where the server is set up to allow custom php.ini files which
override the defaults. To test this, try adding a php.ini file into the
directory your script is (this is completely untested, I just saw it on
a forum (http://www.bluehostforum.com/archive/index.php/t-15975.html ))
and enter the regular php.ini line to turn it off.
If that fails, I'd try and contact your hosting provider and see what
they say, as they probably have more information specific to this
problem, as it's most likely a setting of theirs that is causing it.
--
Thanks,
Ash
http://www.ashleysheridan.co.uk
Have you tried:
ini_set('magic_quotes_gpc', false);---End Message---
---BeginMessage---
Mike Mackintosh mike.mackint...@angrystatic.com wrote in message
news:52ea6b9e-ef12-44d3-bd31-72984e5e5...@angrystatic.com...
Have you tried:
ini_set('magic_quotes_gpc', false);=
I'm trying to set it directly and not have to incl in every script I write.
---End Message---
---BeginMessage---
Solved.
Had to have my host provider put a copy of php.ini in my public_html and
then I made the magic quotes setting change.
Interesting - running a phpinfo command still shows the setting as On
becuase it returns the server's settigns, NOT my individual folder setting.
---End Message---
---BeginMessage---
On Sat, 2011-10-01 at 14:01 -0400, Mike Mackintosh wrote:
On Oct 1, 2011, at 2:04 PM, Ashley Sheridan wrote:
On Sat, 2011-10-01 at 12:55 -0400, Stephen wrote:
On 11-10-01 11:57 AM, Jim Giner wrote:
I'm trying to set magic quotes Off as my reading tells me that