묻고답하기

php에 대해 거의 알지를 못하여, 이렇게 질문을 합니다. 브라우져 별로 다른 명령어를 실행하고 싶습니다.

제로보드 skin에 htmlarea를 적용하고 있습니다. 다음은 write.php에 들어갈 내용입니다.

만약 firefox가 브라우져가 열린다면

<?php
include "/home1/ptmono/public_html/zboard/include/FCKeditor/fckeditor.php" ;
?>
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '/zboard/include/FCKeditor/';
$oFCKeditor->Value = '';
$oFCKeditor->Create() ;
?>

을 실행하고 싶습니다.

그리고 IE6가 브라우져로서 페이지가 열린다면,

<?
            include "$dir/include/edit.php";
            include "$dir/include/edit_body.php";
?>

를 실행하고 싶습니다.