yandoo Posted May 5, 2013 Share Posted May 5, 2013 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 More sharing options...
Jessica Posted May 5, 2013 Share Posted May 5, 2013 Just remove that line and the one above it. And the one later trying to set magic quotes again. Link to comment https://forums.phpfreaks.com/topic/277671-deprecated-function-set_magic_quotes/#findComment-1428453 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.