▶ 특정페이지로 이동
header("location:http://www.abyul.com/index.html");

▶ 절대경로를 서버에 의존하지 않고 설정하기..
$_SERVER[DOCUMENT_ROOT]."/dir.php"

▶ 사용자가 임의로 만든 페이지에 회원제 적용하기

<?
$_zb_url = "http://www.holys.org/zboard/";
$_zb_path = "/home/01/holys13/www/zboard/";
include $_zb_path."outlogin.php";
if ( $member[level] > 9 ) {
// 위의 9 대신 원하시는 레벨도 가능합니다.
(현재는 회원이면 모두 사용가능합니다.)

1.
error ('로그인후 이용하실수 있습니다.');
따옴표('') 안의 말을 적당히 수정하시면,
로그인 하지 않았을때 나오는 에러메시지를 수정하실수 있습니다.

2.
// header("location:http://www.holys.org/index.html");
Error 문 대신 header를 사용할경우 원하시는 페이지로 이동 가능합니다.

3.
// print_outlogin("스킨이름", 그룹번호, 허용레벨);
1번또는 2번 대신 로그인창 출력하게 할수도 있습니다.

현재는 1번 에러메시지가 출력되도록 하였습니다.

}
else {
?>

// 여기 부터는 로그인하였을경우 보여주는 화면 입니다.

<table>
<tr>
<td width=253px height=100%>
<? include ("http://www.holys.org/photo1/photocenta.htm"); ?>
</td>
<td align=top valign=left width=100% height=100%>
<iframe name='photo' src="http://www.holys.org/photo1/photocenta1.htm" width=100% height=100% frameborder=0 scrolling='auto'>
</td>
</tr>
</table>

<? } ?>

▶ 확장자에 따라 다르게 표현하기.. eregi라는 함수를 잘 사용해야.. ^^;

if(eregi(".jpg",$file_name1)||eregi(".gif",$file_name1)||eregi(".png",$file_name1)) $upload_image1="<img src=$data[file_name1] border=0 name=zb_target_resize style="cursor:hand" onclick=window.open(this.src)><br>";
        if(eregi(".jpg",$file_name2)||eregi(".gif",$file_name2)||eregi(".png",$file_name2)) $upload_image2="<img src=$data[file_name2] border=0 name=zb_target_resize style="cursor:hand" onclick=window.open(this.src)><br>";










profile