config.php의 $g4['url']이 선언되어 있다면... common.php 에서 주석처리 문의 정보
config.php의 $g4['url']이 선언되어 있다면... common.php 에서 주석처리 문의
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
config.php의 $g4['url']이 http://www.주소.com/gnu4 로 선언이 되어 있다면 common.php 의 다음부분은 주석처리가 가능한지요 ?
// config.php 가 있는곳의 웹경로
if (!$g4['url'])
{
$g4['url'] = 'http://' . $_SERVER['HTTP_HOST'];
$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
if (!file_exists("config.php"))
$dir = dirname($dir);
$cnt = substr_count($g4['path'], "..");
for ($i=2; $i<=$cnt; $i++)
$dir = dirname($dir);
$g4['url'] .= $dir;
}
오류 주소 :
config.php의 $g4['url']이 http://www.주소.com/gnu4 로 선언이 되어 있다면 common.php 의 다음부분은 주석처리가 가능한지요 ?
// config.php 가 있는곳의 웹경로
if (!$g4['url'])
{
$g4['url'] = 'http://' . $_SERVER['HTTP_HOST'];
$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
if (!file_exists("config.php"))
$dir = dirname($dir);
$cnt = substr_count($g4['path'], "..");
for ($i=2; $i<=$cnt; $i++)
$dir = dirname($dir);
$g4['url'] .= $dir;
}
댓글 전체

주석처리 해도 문제가 되지 않을거 같네요.. 굳히 주석처리 해야 할문제도 아닌거 같구요~

곰순이푸님.. 감사합니다.