web developer

How can I believe that there is still pure love in this world?

PHP:Deprecated: Function set_magic_quotes_runtime() is deprecated

leave a comment »

set_magic_quotes_runtime(0)— Sets the current active configuration setting of magic_quotes_runtime

 

 

This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

 

//@set_magic_quotes_runtime(0);

ini_set(“magic_quotes_runtime”,0);

就是用ini_set()办法替代原有的set_magic_quotes_runtime语法。

 


Deprecated: Function ereg() is deprecated错误解决办法!

Function ereg() is deprecated in drupal-6.15\includes\file.inc on line 904
open the file.inc in a good text editor other than notepad, go to the line number 904 to see the following line. Then comment the line and in the next line type the replaced code. this will solve the instalation issues and also most of other issues related to the same issue.

Change

elseif ($depth >= $min_depth && ereg($mask, $file)) {


to

elseif ($depth >= $min_depth && mb_ereg($mask, $file)) {


mb_ereg fortunatly is not deprecated

Advertisements

Written by luckercn

August 19, 2011 at 5:10 pm

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: