Current location: Hot Scripts Forums » Programming Languages » PHP » set_magic_quotes_runtime() is deprecated

set_magic_quotes_runtime() is deprecated

Reply
  #1 (permalink)  
Old
Newbie Coder
 
Join Date: Jun 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
set_magic_quotes_runtime() is deprecated

hi. i have a script got some problem. anyone know how to fix it?
Reply With Quote

Featured Marketplace Scripts (view more)

  #2 (permalink)  
Old
Niall's Avatar
Newbie Coder
 
Join Date: Feb 2011
Location: Kernow
Posts: 93
Thanks: 11
Thanked 3 Times in 3 Posts
Basicly it means that the function "set_magic_quotes_runtime()" is no-longer used by PHP. I don't know what it does, but you should either remove it or find another function to replace it.
Reply With Quote
  #3 (permalink)  
Old
DanielVS's Avatar
Newbie Coder
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, the function has been deprecated as of PHP 5.3.0 and removed as of PHP 5.4.0, so delete it, or do PHP version check - for example:

if (version_compare(PHP_VERSION, '5.3.0', '<')) {
set_magic_quotes_runtime(0);
}
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
funtion ereg_replace() is deprecated! phphelpme PHP 1 09-27-11 02:27 AM
Proud! Morlaf The Lounge 2 09-23-10 04:11 PM
C++ #warning This file includes at least one deprecated or antiquated header. \ naveed2026 C/C++ 1 02-12-10 12:24 PM
mail script tommyc325 PHP 10 09-01-09 01:54 AM
browser only renders font size change, no color, etc. labelle CSS 3 03-30-09 01:41 AM


All times are GMT -5. The time now is 02:34 AM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.