head.sub.php 에서 파일명 불러오기 채택완료
raineye
10년 전
조회 4,659
페이스북 크롤러가 메타테그를 이용해 긁어갈때
meta 테그에서 파일명을 넣어야 합니다. view 페이지이긴 한데($wr_id가 존재)
head.sub.php 에서 파일명 지정하려고 하는데 다음과 같은 것은 모두 파일명 확인이 안됩니다.
</p><p><meta property='og:image' content='./data/file/<?=$bo_table?>/<?=$file[0]['file']?>' ></p><p><meta property='og:image' content='<span style="font-size: 10pt; line-height: 1.5;">./</span><span style="font-size: 10pt; line-height: 1.5;"></span><span style="font-size: 10pt; line-height: 1.5;">data/file/<?=$bo_table?>/<?=$view['file'][0]['file']?>' ></span></p><p><meta property='og:image' content='<span style="font-size: 10pt; line-height: 1.5;">./</span><span style="font-size: 10pt; line-height: 1.5;"></span><span style="font-size: 10pt; line-height: 1.5;">data/file/<?=$bo_table?>/<?=$write['file'][0]['file']?>' ></span></p><p><span style="font-size: 10pt; line-height: 1.5;">
파일명을 추출하려면.. 이미 파일명이 존재하는 변수가 있어야 하는데,
head.sub.php 에서 호출할 방법이 있나요?
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인