object(HotopayModel)#856 (23) {
["error"]=>
int(0)
["message"]=>
string(7) "success"
["variables"]=>
array(0) {
}
["httpStatusCode"]=>
int(200)
["module"]=>
string(7) "hotopay"
["module_info"]=>
NULL
["origin_module_info"]=>
NULL
["module_config"]=>
NULL
["module_path"]=>
string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/"
["xml_info"]=>
NULL
["module_srl"]=>
NULL
["mid"]=>
NULL
["act"]=>
NULL
["template_path"]=>
NULL
["template_file"]=>
NULL
["layout_path"]=>
NULL
["layout_file"]=>
NULL
["edited_layout_file"]=>
NULL
["stop_proc"]=>
bool(false)
["user"]=>
object(Rhymix\Framework\Helpers\SessionHelper)#855 (20) {
["member_srl"]=>
int(0)
["user_id"]=>
NULL
["user_name"]=>
NULL
["nick_name"]=>
NULL
["email_address"]=>
NULL
["phone_number"]=>
NULL
["homepage"]=>
NULL
["blog"]=>
NULL
["birthday"]=>
NULL
["denied"]=>
NULL
["status"]=>
NULL
["is_admin"]=>
string(1) "N"
["is_site_admin"]=>
NULL
["profile_image"]=>
NULL
["image_name"]=>
NULL
["image_mark"]=>
NULL
["signature"]=>
NULL
["description"]=>
NULL
["group_list"]=>
array(0) {
}
["menu_list"]=>
array(0) {
}
}
["request"]=>
object(Rhymix\Framework\Request)#10 (13) {
["method"]=>
string(3) "GET"
["compat_method"]=>
string(3) "GET"
["url"]=>
string(27) "coding/20464/comment/464759"
["hostname"]=>
string(8) "eond.com"
["domain"]=>
NULL
["protocol"]=>
string(5) "https"
["callback_function"]=>
string(0) ""
["_route_status":protected]=>
int(200)
["_route_options":protected]=>
object(stdClass)#11 (5) {
["cache_control"]=>
bool(true)
["check_csrf"]=>
bool(true)
["is_forwarded"]=>
bool(false)
["is_indexable"]=>
bool(true)
["enable_session"]=>
bool(true)
}
["module"]=>
string(5) "board"
["mid"]=>
string(6) "coding"
["act"]=>
string(16) "dispBoardContent"
["args"]=>
array(6) {
["category"]=>
string(5) "20261"
["page"]=>
int(1)
["document_srl"]=>
string(5) "20464"
["comment_srl"]=>
string(6) "464759"
["mid"]=>
string(6) "coding"
["act"]=>
string(16) "dispBoardContent"
}
}
["ajaxRequestMethod"]=>
array(2) {
[0]=>
string(6) "XMLRPC"
[1]=>
string(4) "JSON"
}
["gzhandler_enable"]=>
bool(true)
}
http://miniwini.com/miniwinis/bbs/index.php?bid=talk&m=search&mode=read&id=24542&p=1&keyword=변수&scale=1&op=and&idx=2몇 주 전에 하드를 모조리 날려먹어서 홈페이지 디자인이라고 깝치는 것은 관두고,
관우님 서버에 들어가서 PHP를 쪼물딱 거리고 있습니다.
그래서 늘 하고 싶었던 이것 저것 중에서 링크명을 모두 변수화 하고 있습니다.
<? include "config.php"; ?>
<frameset cols="150,*" border=0>
<frame src="<? echo "$menu"; ?>" >
<frame src="<? echo "$main"; ?>">
</frameset>
이런 식으로 모든 디렉토리명을 config.php 하나의 파일에서 관리하는 것은
예전부터 꽤 괜찮겠다는 생각에 사실 늘 하고 싶었는데
그 량이 방대해서 이전에는 하지 못하고 이제서야 겨우 조금씩 해나가고 있습니다.
이럴 경우 폴더명을 바꾼다거나 디렉토리 경로를 변경하는 경우에 꽤나 유용할 듯 합니다.
한꺼번에 소스 뜯어고쳐서 파일 하나하나마다 수정해주는 것보다 이렇게 config 한 개의 파일에서
그 경로를 수정해주니 한결 수월한 거 같습니다..(__);
/* config.php */
<?
$random_lnk = "../php/misc/random_lnk/random_lnk.php"; // 상대경로만 유효함
global $random_lnk;
$menu = "http://ssiik.net/~xynex/dphp/menu.htm";
$main = "http://ssiik.net/~xynex/dphp/main.htm";
global $menu;
global $main;
?>
지금 이런 식으로 하고 있는데, 이게 올바른 방법인가요?
ps. 뭐 config 파일을 이동시켜버리면 말짱 도루묵;
댓글 0
댓글작성칸으로