Answers for "set_magic_quotes_runtime php 7"

PHP
0

set_magic_quotes_runtime php 7

ini_set('magic_quotes_runtime', 0);
Posted by: Guest on May-11-2021
0

set_magic_quotes_runtime php 7

if (version_compare(PHP_VERSION, '5.3.0', '<')) {
  set_magic_quotes_runtime(0);
}
else {
  ini_set('magic_quotes_runtime', 0);
}
$magic_quotes = get_magic_quotes_runtime();
$file_buffer = fread($fd, filesize($path));
$file_buffer = $this->EncodeString($file_buffer, $encoding);
fclose($fd);
if ($magic_quotes) {
  if (version_compare(PHP_VERSION, '5.3.0', '<')) {
    set_magic_quotes_runtime($magic_quotes);
  }
  else {
    ini_set('magic_quotes_runtime', $magic_quotes);
  }
}

return $file_buffer;
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language