1. Computing & Technology

Discuss in my forum

Get_magic_quotes_gpc PHP Function

By , About.com Guide

Definition: One way to check if Magic Quotes is running is to run get_magic_quotes_gpc(). It will return a 1 if it is on, or a 0 if it is off. You can use this result to print out the magic quotes status, or to decided if you should run another function, such as addslashes ().
Also Known As: Get Magic Quotes, Magic Quotes Status, Magic Quotes On, Magic Quotes Off
Examples:
<?php
 if (get_magic_quotes_gpc()==1) 
 {
 Print "Magic Quotes gpc is turned on" ;
 } 
 else 
 {
 Print "Magic Quotes gpc is turned off" ; 
 }
 ?>
This simple program would check if Magic Quotes was turned on or off.
Related Searches quotes lt

©2012 About.com. All rights reserved.

A part of The New York Times Company.