Re: [PHP] php.ini setting

2011-10-02 Thread Ashley Sheridan
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 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);


That won't work, because by the time the server comes to process the
script, the data has already been processed. In effect, that line will
do nothing.

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] php.ini setting

2011-10-02 Thread Jim Giner
Spoke to quickly - still having issues.  While the .ini file in each of my 
appl. folders has magic quotes set to Off, my scripts are still escaping my 
input - obviously following the server's .ini file settings.  Waiting for my 
hosters to get back to me. 



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



[PHP] php.ini setting

2011-10-01 Thread Jim Giner
I'm trying to set magic quotes Off as my reading tells me that it's not good 
to have it defaulted to On.

My ISP has this setting (from PHPINFO call):

magic_quotes_gpc on

From reading the php.net manual I found this line

php_flag magic_quotes_gpc on

which it says to place in the .htaccess file.

I downloaded that file from my server's public_html folder, edited it to put 
in the above line (which now says Off) and re-uploaded it.  Boom! My 
server no longer works - I get Internal Server Error The server 
encountered an internal error or misconfiguration.

If I re-edit my .htaccess, remove the line and re-upload, everything works 
fine.

So - what am I mis-interpreting about how to accomplish this task? 



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



Re: [PHP] php.ini setting

2011-10-01 Thread Stephen

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

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



Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner

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. 



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



Re: [PHP] php.ini setting

2011-10-01 Thread Ashley Sheridan
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




Re: [PHP] php.ini setting

2011-10-01 Thread Mike Mackintosh

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);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner

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. 



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



Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner
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.



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