답변 2개
채택된 답변
+20 포인트
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
2년 전
다음 코드가 도움이 될지 모르겠습니다.
Copy
<?php
$dir_self = explode(DIRECTORY_SEPARATOR, __DIR__);
$dir_self = array_reverse($dir_self);
$dir_home_pos = array_search('skin', $dir_self, true) + 1;
if ($dir_home_pos !== false) {
$dir_home_relative = str_repeat('..' . DIRECTORY_SEPARATOR, $dir_home_pos);
include_once($dir_home_relative . 'common.php');
}
if (function_exists('sql_fetch') == true) {
$row = sql_fetch('SELECT NOW() dt FROM DUAL');
print('<pre>');
echo $row['dt'] . PHP_EOL;
echo get_microtime() . PHP_EOL;
print('</pre>');
}
?>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
