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 에러안나게 실행하는법좀 갈켜주세요
그리고 포인트가모지라서 있는포인트 긁을께염
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로