Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 9th, 2015, 07:33 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default get_magic_quotes_gpc() function got deprecated. Please help

Hi everybody,
I am a php developer newbie. I really want to master php in my road on becoming a serious developer. I came to know that the

get_magic_quotes_gpc() function is deprecated in php 5.5 and removed. is there any function that could help in security?

Pleas take a look at this function and give your views. is this code good? Any tips and advise will help

function quote_smart($value, $handle)
{
// Stripslashes
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
// Quote if not integer
if (!is_numeric($value)) {
$value = "'" . mysql_real_escape_string($value, $handle) . "'";
}
return $value;
}

thanks.
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compass Example Using Deprecated marfl99 BOOK: Professional Android 4 Application Development 3 April 6th, 2014 02:42 AM
Chapter 7: addPreferencesFromResource is deprecated pdevhecht BOOK: Professional Android 2 Application Development 0 December 4th, 2012 12:13 AM
Chapter 5 deprecated BigLuck BOOK: Expert PHP and MySQL 1 June 16th, 2010 12:18 PM
GenericDataSource Deprecated lizethfc JSP Basics 0 June 5th, 2003 12:08 PM



All times are GMT -4. The time now is 05:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.