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 Quote 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 (edited) Just remove that line and the one above it. And the one later trying to set magic quotes again. Edited May 5, 2013 by Jessica Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.