Jump to content

Deprecated: Function set_magic_quotes


yandoo

Recommended Posts

Hiya I'm trying to use a html and php form that enables user to upload a file and message, which is then sent to my email address. The trouble is that I get this error occurring twice: 

 

Deprecated: Function set_magic_quotes_runtime() is deprecated

 

 

Heres the line of code its pointing to:

$magic_quotes = get_magic_quotes_runtime();
    set_magic_quotes_runtime(0);
    $file_buffer = fread($fd, filesize($path));
    $file_buffer = $this->EncodeString($file_buffer, $encoding);
    fclose($fd);
    set_magic_quotes_runtime($magic_quotes);

What do I need to replace magic quotes with to fix this please? 

 

Thank you kindly

 

:)

 

 

Link to comment
https://forums.phpfreaks.com/topic/277671-deprecated-function-set_magic_quotes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.