묻고답하기


휴.. 초보여서요.. 죄송..
다른 언어라고는 html밖에 써본적 없어서 많이 벅차네요..

죄송합니다만..
제로님 강좌를 처음부터 보고있는데..
파일 생성 부분을 어떻게 하는건지 이해가 안되서요....


<html>
<head>
<title>test</title>
</head>

<body>

<?

$file=fopen("test3.txt","w");

fwrite($file, "PHP테스트중");

?>

</body>
</html>

이런식으로 코딩을 했는데

Warning: fopen(test3.txt) [function.fopen]: failed to create stream: Permission denied in /home/happy77/web-home/php/php4.php on line 11

Warning: fwrite(): supplied argument is not a valid stream resource in /home/happy77/web-home/php/php4.php on line 13


이렇게 에러가 뜨거든요?;;
이유가 뭔지... ;ㅁ;