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 에러안나게 실행하는법좀 갈켜주세요
그리고 포인트가모지라서 있는포인트 긁을께염
저가요 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 에러안나게 실행하는법좀 갈켜주세요
그리고 포인트가모지라서 있는포인트 긁을께염
댓글 전체
counter.txt 파일을 만들어 주세여.... counter.txt 파일이 없네여...
난 이답변 추천일쌔 ( . . . )
동감