본문 바로가기

Web/PHP

Javascript로 출력

<?php
ob_start();
include $_SERVER[DOCUMENT_ROOT]."/html/default_footer.php3";
$fhtml=ob_get_contents();
ob_end_clean();
$fhtml = addslashes($fhtml);
$footer = explode("\n",$fhtml);

foreach($footer as $fview)
{
    if($fview)    echo "document.write(\"$fview\");\n";
}
?>

'Web > PHP' 카테고리의 다른 글

중복되지 않는 난수  (0) 2013.09.26
디렉토리 생성  (0) 2013.09.26
$_SERVER  (0) 2013.09.26
카운터 정보 가져오기  (0) 2013.09.26
한글의 조사 범위  (0) 2013.09.26