테스트 사이트 - 개발 중인 베타 버전입니다

드림위버 인덱스 html 파일에 ㅠㅠ 최신글 설치!! ㅠ

· 13년 전 · 1025 · 1
일단 연습삼아서,,ㅠ 해보는데!! ㅠㅠ PHP는 몰라서 ㅠ 도통 모르겟네요

일단 ftp경로는

처음 폴더에
ch
gnuboard4
index.html

이렇게 잇습니다! ( 닷홈 ! 무료 호스팅이구요! )

드림위버로 인덱스 파일에

<?
include_once("./_common.php);
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?=latest("basic",'aaa',5,20);?></td>
</tr>
</table>
</body>
</html>


다음과 같이 적은후에

여러가지 찾아 보니까 인덱스 파일과 같은 위치에

_common.php
이 파일을 같이 복사 해두라고 해서 복사해서

안에 내용을

<?
$g4_path = "."; // common.php 의 상대 경로
$g4_path = "./gnuboard4";
?>

다음과 같이 적은후에

ch
gnuboard4
index.html
_common.php


위와 같이 경로로 저장하고 ftp에 올리고나서 하니까.


Parse error: syntax error, unexpected T_VARIABLE in /host/home2/yudaehyun/html/index.html on line 3

다음과 같은 에러가 납니다 ㅠㅠ

어떻게 해야되는지 모르겠습니다. ㅠ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

13년 전
<?
include_once("./_common.php);
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
선언이 되어있습니다.
<td><?=latest("basic",'aaa',5,20);?></td>
작동이 안된다면 commin.php경로가 잘못된게아닌가싶습니다만....

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440