LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-01-2013, 02:38 PM   #1
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 229

Rep: Reputation: Disabled
Magic quotes - what is needet to be turned off


hello dear linux-friends,

Magic quotes - what is needet to be turned off

what is needet to be turned off

in order fit secure needs

Quote:
magic_quotes_gpc Off
magic_quotes_runtime On
magic_quotes_sybase Off
is this all right !?
 
Old 07-01-2013, 05:17 PM   #2
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 236

Rep: Reputation: 64
magic quotes have been deprecated as of php 5.3.0 and they were removed as of php 5.4.0.

you can disable this feature by setting the following in your php.ini:

Code:
# php -i | grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Code:
# grep '^magic_quotes' /etc/php.ini
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
do not forget to reload your webserver/php for the changes to take effect.

you may also be able to disable magic quotes from within an .htaccess file using:

Code:
php_flag magic_quotes_gpc off
php_value magic_quotes_gpc Off
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which php-version comes with the Magic Quotes GPC off? sayhello_to_the_world Linux - Server 3 06-10-2013 04:42 AM
disabling magic quotes is allmost not possible with htaccess sayhello_to_the_world Programming 1 06-04-2013 04:16 PM
simple: php addslashes, magic quotes, etc etc? opioid Programming 6 03-01-2005 01:43 PM
PostNuke install, magic quotes problem HippieCat Linux - Software 0 02-21-2005 04:06 PM
HTMLDOC, Magic Quotes and Red Hat 9 surfinrhino Linux - Software 0 11-25-2004 05:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration