php코드문 에러 나요 ㅜㅜ 해결해주세요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

php코드문 에러 나요 ㅜㅜ 해결해주세요 정보

php코드문 에러 나요 ㅜㅜ 해결해주세요

본문

안녕하세요 회원님들 ㅜㅜ
저가요 php 입력하고 실행을 해보았는데
실행문↓
<?
$fp = fopen("counter.txt","r");
$size = filesize("counter.txt");
$counter = fread($fp, $size);
fclose($fp);
$counter = $counter + 1;
$fp = fopen("counter.txt","w");
$fp = fwrite($fp, $counter);
echo"<hr>당신은
<font color=blue>$counter</font>
번째방문입니다<hr>";
?>


--------------------------------------------------------------------------------------
에러문
Warning: fopen(counter.txt) [function.fopen]: failed to open stream: No such file or directory in /web/home/zx4587/html/a-f/counter.php on line 2

Warning: filesize() [function.filesize]: stat failed for counter.txt in /web/home/zx4587/html/a-f/counter.php on line 3

Warning: fread(): supplied argument is not a valid stream resource in /web/home/zx4587/html/a-f/counter.php on line 4

Warning: fclose(): supplied argument is not a valid stream resource in /web/home/zx4587/html/a-f/counter.php on line 5

Warning: fopen(counter.txt) [function.fopen]: failed to open stream: Permission denied in /web/home/zx4587/html/a-f/counter.php on line 7

Warning: fwrite(): supplied argument is not a valid stream resource in /web/home/zx4587/html/a-f/counter.php on line 8

이렇게나옴
이코드문이 카운터인데 ㅜㅜ
그리고
php 에러안나게 실행하는법좀 갈켜주세요
그리고 포인트가모지라서 있는포인트 긁을께염

댓글 전체

전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT