특정페이지 일때 정보
특정페이지 일때
본문
특정페이지를 호출(링크)할때
메뉴를 인크루드하는 방법?
if(???????=='sitemap.php'){
{include_once(menu1.php);
}
불려지는 페이지는 일반페이지 입니다.
sitemap.php 가 불러질때 메뉴를 include 하려고 하는데요
잘모르겠네요..
도와주세요.. ^^
댓글 전체
$now_file = explode("/",$_SERVER[PHP_SELF]);
$now_file_num = sizeof($now_file)-1;
$now_file = $now_file[$now_file_num];
if($now_file=='sitemap.php'){
{include_once(menu1.php);
}
$now_file_num = sizeof($now_file)-1;
$now_file = $now_file[$now_file_num];
if($now_file=='sitemap.php'){
{include_once(menu1.php);
}
잘됩니다.
몇일 동안 찾았는데 이렇게 쉽게 풀리네요.. ^^
감사합니다.
몇일 동안 찾았는데 이렇게 쉽게 풀리네요.. ^^
감사합니다.
냅~* 수고하세요~
좋은 정보네요