답변 5개 / 댓글 6개
//==============================================================================
// SQL Injection 등으로 부터 보호를 위해 sql_escape_string() 적용
//------------------------------------------------------------------------------
// magic_quotes_gpc 에 의한 backslashes 제거
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
$_POST = array_map_deep('stripslashes', $_POST);
$_GET = array_map_deep('stripslashes', $_GET);
$_COOKIE = array_map_deep('stripslashes', $_COOKIE);
$_REQUEST = array_map_deep('stripslashes', $_REQUEST);
}
-->
//===================================================================
// SQL Injection 등으로 부터 보호를 위해 sql_escape_string() 적용
//------------------------------------------------------------------------------
// magic_quotes_gpc 에 의한 backslashes 제거
if (function_exists('get_magic_quotes_gpc') ) {
$_POST = array_map_deep('stripslashes', $_POST);
$_GET = array_map_deep('stripslashes', $_GET);
$_COOKIE = array_map_deep('stripslashes', $_COOKIE);
$_REQUEST = array_map_deep('stripslashes', $_REQUEST);
}
답변에 대한 댓글 3개
넵 지금 8버전으로 해서 안되는걸수도 있겠네요ㅠ
그누보드를 php 전반적으로 8.x 버전보다는 7.x 버전으로 사용하시는걸 추천드립니다.
답변에 대한 댓글 1개
퍼미션문제입니다
권한부여 해보세요
답변에 대한 댓글 2개
Warning: Undefined array key "host" in C:\xampp\html\common.php on line 53
Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\xampp\html\common.php:101 Stack trace: #0 C:\xampp\html\_common.php(2): include_once() #1 C:\xampp\html\index.php(2): include_once('C:\\xampp\\html\\_...') #2 {main} thrown in C:\xampp\html\common.php on line 101
이 오류가 뜨네요 ㅠ
get_magic_quotes_gpc()은 PHP8부터 없어졌습니다.
php 버전을 7.x로 변경해 보세요.
답변을 작성하려면 로그인이 필요합니다.