- 9
- Seia
- 조회 수 325
<!-- <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Yogurt Tunes</title>
</head>
<frameset rows="0,*" frameborder="NO" border="0" framespacing="0">
<frame name="playlist" src="playlist.php" scrolling="NO" noresize>
<frame name="default" src="default.php">
</frameset>
<noframes>
<body>
<!-- No Frames content -->
</body>
</noframes>
</html> -->
이렇게 해도 PHP 코드 같이 로드되나요?
작성자
댓글 9
![title : 은메달 title: 은메달](https://studyforus.com/./files/iconshop/8009ac0418a7f727a30d9a6685aa3ce6.gif)
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
![profile image](/files/member_extra_info/profile_image/764/094/94764.jpg?t=1566847506)
그럼 frameset 안에는 php를 못 넣나요?
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
![title : 은메달 title: 은메달](https://studyforus.com/./files/iconshop/8009ac0418a7f727a30d9a6685aa3ce6.gif)
개인적으로 frameset 은 iframe 으로 대체하여 사용하는지라 모르겠네요.
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
![profile image](/files/member_extra_info/profile_image/764/094/94764.jpg?t=1566847506)
그렇군요... 전 안되서 iframe으로 대체하고 있습니다. ㅠㅠ
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
![profile image](/files/member_extra_info/profile_image/145/220/220145.jpg?t=1603012768)
무슨 의미인지 잘 모르겠네요.
playlist.php 와 default.php가 불러와지는건 당연한 것 같은데요?
두 페이지가 변수를 공유해야한다면 말이 달라지겠지만요.
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
![profile image](/files/member_extra_info/profile_image/764/094/94764.jpg?t=1566847506)
아.. 그거 frameset에 php 넣어보았는데 Echo 문 출력이 안되서 그냥 iframe으로 했어요
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
![profile image](/files/member_extra_info/profile_image/840/162/162840.png?t=1497669415)
가능합니다!
각자 독립된 싸이트로 보여집니다.
참고로 싸이트는 분리되어 있으므로 변수공유,함수공유 안됩니다
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
![profile image](/files/member_extra_info/profile_image/764/094/94764.jpg?t=1566847506)
정확히 각각에서 php 코드가 실행되는지 였지만 실패네요.
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
PHP 코드는 include 를 사용하셔야 하고요, 사이트를 로드할 것이라면 frame 도 상관 없습니다